-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapfile: show more context when a snap file header cannot be read
There was a recent salesforce case where a invalid snap was downloaded but because the error from the snapfile only contains the "bytes" representation it was not clear right away that the header was actually a json error like: `{"err...`. This commit tweaks the error so that more context (15 bytes) are displayed and they are also displayed as quoted string not only as bytes.
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters