-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture missing solve-field error #116
Conversation
* Catch error from python and show appropriate message
Codecov Report
@@ Coverage Diff @@
## develop #116 +/- ##
========================================
Coverage 84.39% 84.39%
========================================
Files 35 35
Lines 2345 2345
Branches 281 281
========================================
Hits 1979 1979
Misses 285 285
Partials 81 81
Continue to review full report at Codecov.
|
scripts/solve_field.sh
Outdated
@@ -6,7 +6,7 @@ then | |||
echo 2>&1 "" | |||
echo 2>&1 "Please install astrometry into ${PANDIR}/astrometry to enable $0" | |||
echo 2>&1 "" | |||
exit 1 | |||
exit 127 # Command not found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually know if this is the appropriate use of the error code 127 so don't mind switching back to 1
as long as we still catch above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be better to go with 3. Codes 1, 2, 126 and 127 have meanings assigned by bash, so avoiding those codes may avoid confusion down the road. See: http://tldp.org/LDP/abs/html/exitcodes.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll get this changed back. I also am not sure why I mixed the |
* Reversing the change to matplotlib which should be in a separate issue
Related to #113