added to error message if no block with id was found

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2023-01-31 09:55:11 +01:00
parent c49856a480
commit ae551bef54
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -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