commit 308444365601e967584dfc2acf3afac600699767
parent 629e400e00042d3f97ae63e040f26861f90be8b4
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Fri, 10 Oct 2025 09:30:22 +0000
pthbs-link: more detailed error message
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/command/pthbs-link b/command/pthbs-link
@@ -7,11 +7,13 @@ while IFS= read -r line; do
target=$1/${target#./}
source=$2/${source#./}
if test -e "$source"; then
+ printf >&2 'error in: "%s" "%s" "%s"\n' "$0" "$1" "$2"
printf >&2 'FATAL: link source already exists: "%s"\n' "$source"
ls >&2 -l "$source"
exit 1
fi
if ! test -e "$target"; then
+ printf >&2 'error in: "%s" "%s" "%s"\n' "$0" "$1" "$2"
printf >&2 'FATAL: link target does not exists: "%s"\n' "$target"
exit 1
fi