Skip to content

Commit 32fd4ca

Browse files
committed
Improve error output
1 parent a2eb03a commit 32fd4ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/domain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,14 +988,14 @@ is_base_domain_owner(){
988988
parse_object_kv_list "$web"
989989
if [ -z "$ALLOW_USERS" ] || [ "$ALLOW_USERS" != "yes" ]; then
990990
# Don't care if $basedomain all ready exists only if the owner is of the base domain is the current user
991-
is_domain_new "" $basedomain;
991+
check=$(is_domain_new "" $basedomain)
992992
if [ $? -ne 0 ]; then
993993
echo "Error: $basedomain belongs to a different user";
994994
exit 4;
995995
fi
996996
fi
997997
else
998-
is_domain_new "" "$basedomain"
998+
check=$(is_domain_new "" "$basedomain")
999999
if [ $? -ne 0 ]; then
10001000
echo "Error: $basedomain belongs to a different user";
10011001
exit 4;

0 commit comments

Comments
 (0)