Skip to content

Commit d2093a2

Browse files
Built-in templates: improve ERR trap to mention future.batchtools and prefix with ERROR:
1 parent b2844a6 commit d2093a2

File tree

13 files changed

+15
-13
lines changed

13 files changed

+15
-13
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future.batchtools
2-
Version: 0.12.2-9973
2+
Version: 0.12.2-9974
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

inst/templates/bash.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
set -e # exit on error
1010
set -u # error on unset variables
1111
set -o pipefail # fail a pipeline if any command fails
12-
trap 'echo "Error on line $LINENO"; exit 1' ERR
12+
trap 'echo "ERROR: future.batchtools job script failed on line $LINENO" >&2; exit 1' ERR
13+
1314

1415
<%
1516
## Maximum runtime?

inst/templates/lsf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
set -e # exit on error
3333
set -u # error on unset variables
3434
set -o pipefail # fail a pipeline if any command fails
35-
trap 'echo "Error on line $LINENO"; exit 1' ERR
35+
trap 'echo "ERROR: future.batchtools job script failed on line $LINENO" >&2; exit 1' ERR
3636

3737
echo "Batchtools information:"
3838
echo "- job name: '<%= job.name %>'"

inst/templates/openlava.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
set -e # exit on error
3333
set -u # error on unset variables
3434
set -o pipefail # fail a pipeline if any command fails
35-
trap 'echo "Error on line $LINENO"; exit 1' ERR
35+
trap 'echo "ERROR: future.batchtools job script failed on line $LINENO" >&2; exit 1' ERR
3636

3737
echo "Batchtools information:"
3838
echo "- job name: '<%= job.name %>'"

inst/templates/sge.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
set -e # exit on error
4242
set -u # error on unset variables
4343
set -o pipefail # fail a pipeline if any command fails
44-
trap 'echo "Error on line $LINENO"; exit 1' ERR
44+
trap 'echo "ERROR: future.batchtools job script failed on line $LINENO" >&2; exit 1' ERR
4545

4646
echo "Batchtools information:"
4747
echo "- job name: '<%= job.name %>'"

inst/templates/slurm.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
set -e # exit on error
3232
set -u # error on unset variables
3333
set -o pipefail # fail a pipeline if any command fails
34-
trap 'echo "Error on line $LINENO"; exit 1' ERR
34+
trap 'echo "ERROR: future.batchtools job script failed on line $LINENO" >&2; exit 1' ERR
3535

3636
echo "Batchtools information:"
3737
echo "- job name: '<%= job.name %>'"

inst/templates/torque.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
set -e # exit on error
3636
set -u # error on unset variables
3737
set -o pipefail # fail a pipeline if any command fails
38-
trap 'echo "Error on line $LINENO"; exit 1' ERR
38+
trap 'echo "ERROR: future.batchtools job script failed on line $LINENO" >&2; exit 1' ERR
3939

4040
echo "Batchtools information:"
4141
echo "- job name: '<%= job.name %>'"

man/batchtools_bash.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/batchtools_lsf.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/batchtools_openlava.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)