     vmController.run {
       withArgs : "kdc #{app.path}"
       vmName   : app.vm
-    }, (err, response)=>
-
-      unless err
+    }, (err, response)->
+
+      if err
+
+        loader.notificationSetTitle "An unknown error occured"
+        loader.notificationSetTimer 2000
+        callback? err
+        warn err
+
+      else if response.exitStatus is 0
 
         loader.notificationSetTitle "App compiled successfully"
         loader.notificationSetTimer 2000

          width    : 600
          overlay  : yes
          cssClass : 'compiler-modal'
          content  : if response then "<pre>#{response}</pre>" \
                                 else "<p>#{err.message}</p>"

        callback? err


  @createJApp = (path, callback)->



        loader.destroy()

        err = response.stderr or response.stdout

        if response.exitStatus is 127
          KodingAppsController.installKDC()
          callback? { message: "KDC is not installed: #{err}" }
          return

        new KDModalView
