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
Dan Janosik
5 years ago
6 changed files with 113 additions and 69 deletions
@ -1,13 +1,17 @@ |
|||||
extends layout |
extends layout |
||||
|
|
||||
block headContent |
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 |
block content |
||||
h1.h3 Block |
if (result.getblock) |
||||
small.text-monospace(style="width: 100%;") ##{result.getblock.height.toLocaleString()} |
h1.h3 Block |
||||
br |
small.text-monospace(style="width: 100%;") ##{result.getblock.height.toLocaleString()} |
||||
small.text-monospace.word-wrap(style="width: 100%;") #{result.getblock.hash} |
br |
||||
hr |
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