diff options
Diffstat (limited to 'bin/ak-ipfs-block-stat')
-rwxr-xr-x | bin/ak-ipfs-block-stat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ak-ipfs-block-stat b/bin/ak-ipfs-block-stat index 6668275..144523d 100755 --- a/bin/ak-ipfs-block-stat +++ b/bin/ak-ipfs-block-stat @@ -1,3 +1,8 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs block stat "$1" - +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to retrieve stat of block $1" + exit 1 +fi |