Browse Source
- RPC api now throws errors up to callers on RpcError results - More consistent handling of errors from baseActionRouter - Add some missing rejection handlers - Tweak UI for display of errors - Handle missing block data on /block pages (in UI) so that error info can be displayed cleanly (rather than the template error showing because data is missing)master
6 changed files with 113 additions and 69 deletions
@ -1,13 +1,17 @@ |
|||
extends layout |
|||
|
|||
block headContent |
|||
title Block ##{result.getblock.height.toLocaleString()}, #{result.getblock.hash} |
|||
if (result.getblock) |
|||
title Block ##{result.getblock.height.toLocaleString()}, #{result.getblock.hash} |
|||
else |
|||
title Block: Error |
|||
|
|||
block content |
|||
h1.h3 Block |
|||
small.text-monospace(style="width: 100%;") ##{result.getblock.height.toLocaleString()} |
|||
br |
|||
small.text-monospace.word-wrap(style="width: 100%;") #{result.getblock.hash} |
|||
hr |
|||
if (result.getblock) |
|||
h1.h3 Block |
|||
small.text-monospace(style="width: 100%;") ##{result.getblock.height.toLocaleString()} |
|||
br |
|||
small.text-monospace.word-wrap(style="width: 100%;") #{result.getblock.hash} |
|||
hr |
|||
|
|||
include includes/block-content.pug |
|||
include includes/block-content.pug |
Loading…
Reference in new issue