Skip to content

Commit

Permalink
Throw error if trying to beautify Perl without setting Perl Tidy path
Browse files Browse the repository at this point in the history
See #138, #33.
  • Loading branch information
Glavin001 committed Dec 28, 2014
1 parent 60f6a9b commit 77f58bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/langs/perl-beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 77f58bb

Please sign in to comment.