Skip to content

Commit

Permalink
Give detailed feedback on server connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Mar 6, 2018
1 parent 539248c commit 12448b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pynailgun/ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,9 @@ def main():
sys.exit(exit_code)
except NailgunException as e:
sys.stderr.write(str(e))
if "Could not connect to" in str(e):
sys.stderr.write("Have you forgotten to start bloop's server?")
sys.stderr.write("Check our usage instructions in https://scalacenter.github.io/bloop/")
sys.exit(e.code)
except KeyboardInterrupt as e:
pass
Expand Down

0 comments on commit 12448b9

Please sign in to comment.