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
This commit is contained in:
committed by
Péter Szilágyi
parent
18bb3da55e
commit
b574b57766
@ -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">
|
||||
|
Reference in New Issue
Block a user