-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
status.rs: Make json output more verbose (#1367)
* status.rs: Make json output more verbose Currently if the status response has no status code, json output contains only a text field which gives no real information about the cause of the problem. The patch adds field with more detailed information when the status response contains some details. Signed-off-by: Norbert Kamiński <[email protected]> * cli.rs: Test parsing of error details in JSON format Some network error such as SSL has no status code but it can be identified by error status details. This patch adds a test case to verify if the error details are parsed properly in the json format. Signed-off-by: Norbert Kamiński <[email protected]> --------- Signed-off-by: Norbert Kamiński <[email protected]>
- Loading branch information
Norbert Kamiński
authored
Jan 30, 2024
1 parent
54e6386
commit 2a95944
Showing
3 changed files
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Test detailed JSON output error | ||
|
||
This file is used to test if the error details are parsed properly in the json | ||
format. | ||
|
||
[The website](https://expired.badssl.com/) produce SSL expired certificate | ||
error. Such network error has no status code but it can be identified by error | ||
status details. |
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