Skip to content

Commit

Permalink
add a error tip
Browse files Browse the repository at this point in the history
  • Loading branch information
recolic committed Sep 3, 2018
1 parent 3485b34 commit d228de2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vivado-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d228de2

Please sign in to comment.