Improve error messages

This commit is contained in:
Marty Oehme 2023-01-08 17:19:24 +01:00
parent 2450c58289
commit c3f1568d3a
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

4
uoeia
View file

@ -89,10 +89,10 @@ dereference() {
} }
main() { main() {
command -v "${imageviewer}" 1>/dev/null 2>&1 || die "Opening images in ${imageviewer} requires ${imageviewer} to be installed and and on the path." command -v "${imageviewer}" 1>/dev/null 2>&1 || die "Error: Opening images in ${imageviewer} requires ${imageviewer} to be installed and and on the path."
trap cleanup EXIT trap cleanup EXIT
[ -d "$cache_dir" ] || mkdir -p -- "$cache_dir" || die [ -d "$cache_dir" ] || mkdir -p -- "$cache_dir" || die "Error: Can not create cache directory {$cache_dir}"
im_number=1 im_number=1
while [ -n "$1" ]; do while [ -n "$1" ]; do
case "$1" in case "$1" in