diff options
author | Elad Nachmias <theman@elad.im> | 2018-02-27 21:32:38 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-02-27 21:32:38 +0800 |
commit | b574b5776695eb30e034fd8c7a468b3f03d4c6b9 (patch) | |
tree | 307825284d30437ff656ecbc5feeb8846d2b075e /swarm/api/http/error_templates.go | |
parent | 18bb3da55e4d2f6b5e9142b7f5d5bd76f2fb78b0 (diff) | |
download | go-tangerine-b574b5776695eb30e034fd8c7a468b3f03d4c6b9.tar.gz go-tangerine-b574b5776695eb30e034fd8c7a468b3f03d4c6b9.tar.zst go-tangerine-b574b5776695eb30e034fd8c7a468b3f03d4c6b9.zip |
swarm: give correct error on 0x hash prefix (#16195)
- added a case error struct that contains information about certain error cases
in which we would like to output more information to the client
- added a validation method that iterates and adds the information that is
stored in the error cases
Diffstat (limited to 'swarm/api/http/error_templates.go')
-rw-r--r-- | swarm/api/http/error_templates.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/swarm/api/http/error_templates.go b/swarm/api/http/error_templates.go index 0457cb8a7..cc9b996ba 100644 --- a/swarm/api/http/error_templates.go +++ b/swarm/api/http/error_templates.go @@ -168,6 +168,11 @@ func GetGenericErrorPage() string { {{.Msg}} </td> </tr> + <tr> + <td class="value"> + {{.Details}} + </td> + </tr> <tr> <td class="key"> @@ -342,6 +347,12 @@ func GetNotFoundErrorPage() string { {{.Msg}} </td> </tr> + <tr> + <td class="value"> + {{.Details}} + </td> + </tr> + <tr> <td class="key"> |