Skip to content

Commit

Permalink
Exit with 1 if type check finds problems (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
amake committed Aug 12, 2020
1 parent 66083f9 commit 0d12b62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/solargraph/shell.rb
Expand Up @@ -153,6 +153,7 @@ def typecheck *files
probcount += problems.length
end
puts "#{probcount} problem#{probcount != 1 ? 's' : ''} found#{files.length != 1 ? " in #{filecount} of #{files.length} files" : ''}."
exit 1 if probcount.positive?
end

desc 'scan', 'Test the workspace for problems'
Expand Down

0 comments on commit 0d12b62

Please sign in to comment.