command line, and exit rather than carry on. (Closes issue 51).
done
echo
else
- log error "syntax error while processing track numbers"
+ log error "syntax error while processing track numbers ($i)"
exit 1
fi
}
# Range parsing code courtesy of Vincent Ho
# Cleaned up to use shell built-ins by Charles Steinkuehler
if [ "${1#*[^0-9-]}" != "$1" ]; then
- log error "syntax error while processing track numbers"
+ log error "syntax error while processing track numbers ($1)"
+ exit 1
else
RSTART=${1%%-*}
REND=${1##*-}
* If we don't find any CDDB or Musicbrainz information for the CD, try
to extract CD-Text information to populate the cddbinfo template.
(Closes issue 41).
+ * Try to give more helpful error messages when we can't parse the
+ command line, and exit rather than carry on. (Closes issue 51).
[ Colin Tuckley ]
* replace deprecated egrep with grep -E (Closes issue 24).