             atom.project.getRepo()?.getPathStatus(pathToCreate)
             atom.workspaceView.open(pathToCreate)
             dialog.close()
-        catch e
-          dialog.showError("Error: #{e.message} Try a different path.")
+        catch error
+          dialog.showError("#{error.message} Try a different path.")
 
     dialog.miniEditor.getBuffer().on 'changed', =>
       if /\/$/.test(dialog.miniEditor.getText())

          return

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

        directoryPath = path.dirname(newPath)

            repo.getPathStatus(oldPath)
            repo.getPathStatus(newPath)
          dialog.close()
        catch error
          dialog.showError("#{error.message} Try a different path.")

    dialog.attach()

