-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
skel: clean up errors in skel and add some well-known error codes #686
Conversation
@mars1024 Note that the Spec says |
Yeah, it would be useful to log the error message to stderr, but I personally don't like logging JSON to stderr. |
👍 for not logging JSON. Also if it's log - it would be nice to have a timestamp at least in it. |
I've updated the aims in issue #685 , and i'm going to update this PR soon ~ |
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
759e3cb
to
227c438
Compare
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
This is awesome! Thanks for such a great PR. To make things easier for plugin authors, we'd like there to be just a bit fewer error codes. Because this is changing the spec, we need to live with it "forever." So don't feel disappointed if we have a lot of suggestions. |
Thanks for your appreciation, I'll update this soon ~ |
4d8a3ab
to
e09ccfa
Compare
This looks really good! |
Updated! PTAL, thanks ~ |
/lgtm after the 8 -> 11 |
Just a note if someone would not understand why we want there 11: http://man7.org/linux/man-pages/man3/errno.3.html and https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html #define EAGAIN 11 /* Try again */ ;) |
e09ccfa
to
0586094
Compare
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
0586094
to
3e79703
Compare
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.
Thanks!
ref to #685