mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
added to error message if no block with id was found
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
c49856a480
commit
ae551bef54
@ -74,6 +74,6 @@ class BlockListApi(Resource):
|
|||||||
block = planet.get_block_containing_tx(tx_id)
|
block = planet.get_block_containing_tx(tx_id)
|
||||||
|
|
||||||
if not block:
|
if not block:
|
||||||
return make_error(404)
|
return make_error(404, "Block containing transaction with id: {} not found.".format(tx_id))
|
||||||
|
|
||||||
return block
|
return block
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user