treewide: streamline bash error reporting
- Show the script file name - Use common line number format that allows opening file at line in editors
This commit is contained in:
parent
538b2dcfae
commit
a52bf46031
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ set -euo pipefail
|
|||
CACHIX_SIGNING_KEY="${CACHIX_SIGNING_KEY:-}"
|
||||
cachixCache=nix-bitcoin
|
||||
|
||||
trap 'echo Error at line $LINENO' ERR
|
||||
trap 'echo "Error at ${BASH_SOURCE[0]}:$LINENO"' ERR
|
||||
|
||||
tmpDir=$(mktemp -d -p /tmp)
|
||||
trap 'rm -rf $tmpDir' EXIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue