                                                namespace-text (extract namespace-text)))
             (catch js/Error e
               (.error js/console e)
-              (rf/dispatch [:alert "Error generating extern" (str e.name ": " e.message ". Check console for stack trace.")])
+              (rf/dispatch [:alert "Error generating extern" (error-string e)])
               db)))))))
 
 (rf/register-handler

  (-> (jsloader/load url)
      (.addCallbacks success err)))

(rf/register-handler
  :initialize
  (fn [db _]

    (let [url (get db :url-text)]
      (if (string/blank? url)
        (do
          (rf/dispatch [:alert "Blank Field Error" "Please enter the url of your JavaScript file to be loaded"])
          db)
        (do
          (load-script url
