Skip to content
Snippets Groups Projects
Unverified Commit d228de21 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

add a error tip

parent 3485b34f
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,10 @@ function get_constraint_of_module () {
for _ele in "${top_modules[@]}" ; do
_key=${_ele%%:*}
_value=${_ele#*:}
[[ ${_key} == ${_mod_name} ]] && echo -n "${_value}" && return 0
if [[ ${_key} == ${_mod_name} ]]; then
[[ -f "${_value}" ]] && echo -n "${_value}" && return 0
echo2 "Error: constraint file '${_value}' not found."
fi
done
echo2 "Error: Can not find constraint for module '$_mod_name'"
# `exit 9` won't work.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment