gameontext / regutil

Command line utilities for managing room registrations
Apache License 2.0
0 stars 1 forks source link

exceptions don't always return a value when App is called via command line #13

Closed ilanpillemer closed 8 years ago

ilanpillemer commented 8 years ago

App has three different return call behaviours

  1. When the actual call to the MAP Service is made and there is any return HTTP Status that is not between 200 and 204 it returns the HTTP Status code as the exit code.
  2. If there are no argument provided at all it returns exit code 1.
  3. If there are other exceptions, and there are a few then no exit code is imposed by the application and as per Java design always returns a status code of 0.

According to the comment in the application for branch (1) above //convert the HTTP response code into a system exit for build systems I assume that this means that all unhappy execution branches should return a non zero status.