Interpolate pathToCreate instead of path

This regressed as part of the migration to using helpers from
path instead of fs-utils.

Close #608
This commit is contained in:
Kevin Sawicki
2013-07-01 12:10:50 -07:00
parent 268edf16d8
commit 6b591b121d

View File

@@ -278,7 +278,7 @@ class TreeView extends ScrollView
try
if fsUtils.exists(pathToCreate)
pathType = if fsUtils.isFileSync(pathToCreate) then "file" else "directory"
dialog.showError("Error: A #{pathType} already exists at path '#{path}'. Try a different path.")
dialog.showError("Error: A #{pathType} already exists at path '#{pathToCreate}'. Try a different path.")
else if endsWithDirectorySeparator
fsUtils.makeTree(pathToCreate)
dialog.cancel()