diff --git a/dotoolc b/dotoolc index 64f70dd..fa3b38a 100755 --- a/dotoolc +++ b/dotoolc @@ -14,11 +14,11 @@ fifo_being_read(){ p="${DOTOOL_PIPE:-/tmp/dotool_pipe}" if [ -p "$p" ] && ! [ -w "$p" ]; then - echo 'dotoolc: the pipe does not grant write permission' + printf %s\\n "dotoolc: the pipe does not grant write permission: $p" >&2 exit 1 fi if ! fifo_being_read "$p"; then - echo 'dotoolc: dotoold is not connected' >&2 + printf %s\\n "dotoolc: no dotoold instance is reading the pipe: $p" >&2 exit 1 fi exec cat > "$p" diff --git a/dotoold b/dotoold index 8dc6d06..406fc4e 100755 --- a/dotoold +++ b/dotoold @@ -14,7 +14,7 @@ fifo_being_read(){ p="${DOTOOL_PIPE:-/tmp/dotool_pipe}" if fifo_being_read "$p" 2> /dev/null; then - echo 'dotoold: another instance is already connected' >&2 + printf %s\\n "dotoold: another instance is already reading the pipe: $p" >&2 exit 1 fi