             $("head #app-#{__utils.slugify name}").remove()
             $('head').append("<link id='app-#{__utils.slugify name}' rel='stylesheet' href='#{KD.appsUri}/#{manifest.authorNick}/#{__utils.stripTags name}/latest/#{__utils.stripTags sheet}'>")
 
+    showError = (error)->
+      new KDModalView
+        title   : "An error occured while running the App!"
+        width   : 500
+        overlay : yes
+        content : """
+                  <div class='modalformline'>
+                    <h3>#{error.constructor.name}</h3><br/>
+                    <pre>#{error.message}</pre>
+                  </div>
+                  <p class='modalformline'>
+                    <cite>Check Console for more details.</cite>
+                  </p>
+                  """
+                  # <pre>#{error.stack}</pre>
+
+      console.warn error.message, error
+
     @getAppScript manifest, (err, appScript)=>
       if err then warn err
       else

            # security please!
            do ->
              eval appScript
          catch e
            console.warn "App caused some problems:", e
          callback?()
          return null


            do (appView)->
              appScript = "var appView = KD.instances[\"#{appView.getId()}\"];\n\n"+appScript
              eval appScript
          catch error
            # if not manifest.ignoreWarnings? # GG FIXME
            showError error
          callback?()
          return appView
        else
