aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-name-resolve
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-ipfs-name-resolve')
-rwxr-xr-xbin/ak-ipfs-name-resolve6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-name-resolve b/bin/ak-ipfs-name-resolve
index 1f7ea93..6368e19 100755
--- a/bin/ak-ipfs-name-resolve
+++ b/bin/ak-ipfs-name-resolve
@@ -1,3 +1,9 @@
#!/bin/bash
+PROGRAM="$(basename $0)"
ipfs name resolve "$1"
+if [ "$?" != "0" ]
+then
+ ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to resolve $1"
+ exit 1
+fi