Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 15566b3

Browse files
authored
Merge pull request #47 from AtomLinter/arcanemagus/allow-empty-stderr
Allow stderr to be empty
2 parents e6c95c2 + c25bb90 commit 15566b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/main.coffee

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ module.exports =
3131
else
3232
parameters.push('-p')
3333
parameters.push('-') # to indicate that the input is in stdin
34-
return helpers.exec(@executablePath, parameters, {stdin: textEditor.getText(), stream: 'stderr'}).then (output) ->
34+
execOpts =
35+
stdin: textEditor.getText()
36+
stream: 'stderr'
37+
allowEmptyStderr: true
38+
39+
return helpers.exec(@executablePath, parameters, execOpts).then (output) ->
3540
return helpers.parse(output, regex, filePath: textEditor.getPath()).map (error) ->
3641
error.type = 'Error'
3742
return error

0 commit comments

Comments
 (0)