Throw error if trying to beautify Perl without setting Perl Tidy path
See #138, #33.
This commit is contained in:
parent
60f6a9bd07
commit
77f58bbfc7
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
getCmd = (inputPath, outputPath, options) ->
|
getCmd = (inputPath, outputPath, options) ->
|
||||||
# console.debug "[perl-beautify] options: " + JSON.stringify(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 = [
|
args = [
|
||||||
'"' + options.perltidy_path + '"'
|
'"' + options.perltidy_path + '"'
|
||||||
'--standard-output'
|
'--standard-output'
|
||||||
|
|
Loading…
Reference in New Issue