tfilmprice: improve die() - filmtools - various tools for photographic film development and darkroom printing
HTML git clone git://src.adamsgaard.dk/filmtools
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 48d3f12aefdf158cd79a1ad231a6b50bd998b0a6
DIR parent 96ad820b9db4b67b643c4cf6af4cb7e116aeda92
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 6 Feb 2021 14:10:07 +0100
filmprice: improve die()
Diffstat:
M filmprice | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/filmprice b/filmprice
t@@ -4,7 +4,7 @@
rolls_per_bulk_roll=19
die() {
- printf 'error: %s' "$1" >&2
+ printf '%s: error: %s\n' "${0##*/}" "$1" >&2
exit 1
}