Incorrect branching in assert_error
This commit is contained in:
parent
a37d5c2538
commit
6c7e78cd12
@ -127,9 +127,9 @@ assert_error() {
|
|||||||
if [ "${ERR}" != "0" ]; then
|
if [ "${ERR}" != "0" ]; then
|
||||||
if [ -z "${ERR}" ]; then
|
if [ -z "${ERR}" ]; then
|
||||||
exit ${ERR}
|
exit ${ERR}
|
||||||
|
else
|
||||||
|
exit ${ERRCODE}
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
exit ${ERRCODE}
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user