-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
Fix unhandled error exceptions that cause application to exit / crash when uploading files (Issue #624) #625
Conversation
abraunegg
commented
Aug 21, 2019
- remove 'else throw e' which causes the application to exit / crash and replace with what the actual error message is from OneDrive
* remove 'else throw e' which causes the application to exit / crash and replace with what the actual error message is from OneDrive
* Make logging of unhandled errors consistent
* Update error message handling * Add file system exception handling * Add 401 Unauthorised response code check * Add try & catch for modified file uploads
* Add extra error handling when uploading files for errors received from OneDrive or file system errors
* Flag that the upload failed if there is an exception error raised
* Update logging output for when an error occurs to indicate that the file was skipped * Log the 401 response as log.vlog rather than log.error as it is now being handled correctly
@norbusan
|
* Fix up error message output so when other errors occur * Throw an exception for 50x errors so that it gets caught correctly
Fix this sort of issue as well:
The 503 should be handled, upload should be listed as skipped and logging output should not be jammed up together |
Logging example with latest commit:
|
* Clean up logging when exception is generated
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.
Code looks fine, thanks for refactoring the logging. Compile and run tested. But I never could trigger the error myself.
@abraunegg I tried to restart the analysis, didn't work either. Something is strange wioth codacy atm. |
* Fix merge issues after #625
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |