Skip to content
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

Show error messages and error codes #26

Open
floggle opened this issue Mar 20, 2019 · 0 comments
Open

Show error messages and error codes #26

floggle opened this issue Mar 20, 2019 · 0 comments

Comments

@floggle
Copy link

floggle commented Mar 20, 2019

Currently in ErrorHandler.php you only show the error message. This is bad because B2 unhelpfully very often leaves this field blank.
Include the error code too:

throw new $exceptionClass('Received error from B2: '.$responseJson['message'].' Code: '.$responseJson['code']);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant