 
         @callBackOnExit?()
 
-    ).fail (errMsg) =>
+    ).catch (errMsg) =>
       console.error chalk.red errMsg
       @callBackOnExit?()
 

Help = require "./Help"

os = require "os"

Q = require "q"

class SafariDebug


    @ensureAssistiveAccess().then( =>
      scriptPath = path.join paths.scriptsDir, scriptFileName

      args = if argument?
        [scriptPath].concat argument
      else
