diff --git a/src/main/frontend/handler/db_based/rtc.cljs b/src/main/frontend/handler/db_based/rtc.cljs index 27427bd2ca..e5de5b2d26 100644 --- a/src/main/frontend/handler/db_based/rtc.cljs +++ b/src/main/frontend/handler/db_based/rtc.cljs @@ -105,37 +105,42 @@ (defn ex-data* - (select-keys [:app :local :remote]) - pp/pprint - with-out-str)]] - :error))) + :rtc.exception/major-schema-version-mismatched + (case (:sub-type ex-data*) + :download + (notification-download-higher-schema-graph! repo graph-uuid (:remote ex-data*)) + :create-branch + (notification-upload-higher-schema-graph! repo) + ;; else + (do (log/info :start-ex start-ex) + (notification/show! [:div + [:div (ex-message start-ex)] + [:div (-> ex-data* + (select-keys [:app :local :remote]) + pp/pprint + with-out-str)]] + :error))) - :rtc.exception/lock-failed nil + :rtc.exception/lock-failed nil - ;; else - nil)] - nil)))) + ;; else + nil)] + nil))) + + )) (defn