summaryrefslogtreecommitdiffstats
path: root/src/profile.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-17 16:10:31 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-17 16:10:31 (EST)
commit09c583248e7c0aa5a833ec01262b8b4a7980234b (patch)
treee3ecd4028e888d6eb587d9703ace4d90396a624a /src/profile.sh
parentd5e46c35ea98e43b6ad380ac7fbc197b7881b220 (diff)
parente3ab87a78aafd979f6eb8bb75ef70304d87a1d6b (diff)
Merge branch 'feature/improve-error-handling'
Diffstat (limited to 'src/profile.sh')
-rw-r--r--src/profile.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/profile.sh b/src/profile.sh
index 44e3022..d5ffe1e 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -44,7 +44,8 @@ profile_set()
if is_profile "${prof}"; then
profile="${prof}"
else
- error 1 "$(get_msg 'profile_not_found')" "${prof}"
+ error "$(get_msg 'profile_not_found')" "${prof}"
+ return 1
fi
return 0
@@ -61,7 +62,8 @@ profile_detect()
fi
done
- error 1 "$(get_msg 'profile_not_detected')" "${root}"
+ error "$(get_msg 'profile_not_detected')" "${root}"
+ return 1
}
profile_normalize_suite()