Throw error if trying to beautify Perl without setting Perl Tidy path

See #138, #33.
This commit is contained in:
Glavin Wiechert 2014-12-28 02:19:36 -04:00
parent 60f6a9bd07
commit 77f58bbfc7
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@
getCmd = (inputPath, outputPath, options) ->
# console.debug "[perl-beautify] options: " + JSON.stringify(options)
if not options.perltidy_path?
return new Error("'Perl Perltidy Path' not set!" +
" Please set this in the Atom Beautify package settings.")
args = [
'"' + options.perltidy_path + '"'
'--standard-output'