             repo.getPathStatus(oldPath)
             repo.getPathStatus(newPath)
           dialog.close()
-        catch e
-          dialog.showError("Error: #{e.message} Try a different path.")
+        catch error
+          dialog.showError("#{error.message} Try a different path.")
 
     dialog.attach()
 

          return

        if fs.existsSync(newPath)
          dialog.showError("Error: #{newPath} already exists. Try a different path.")
          return

        directoryPath = path.dirname(newPath)

        try
          if fs.existsSync(pathToCreate)
            pathType = if fs.isFileSync(pathToCreate) then "file" else "directory"
            dialog.showError("A #{pathType} already exists at path '#{pathToCreate}'. Try a different path.")
          else if endsWithDirectorySeparator
            fs.makeTreeSync(pathToCreate)
            dialog.cancel()
