General: If something can't be detected let the user know in verbose mode

This commit is contained in:
Dylan Araps 2016-11-04 14:49:50 +11:00
parent 971616f0c4
commit 5585eaa8b8
1 changed files with 4 additions and 1 deletions

View File

@ -2309,7 +2309,10 @@ info() {
fi
# If the output is empty, don't print anything
[ -z "$output" ] && return
if [ -z "$output" ]; then
err "Info: Couldn't detect $subtitle"
return
fi
# Trim whitespace
output="$(trim "$output")"