File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 79
79
# (3) Parse the usage information (default usage file name: current file's name with -usage appended).
80
80
# (4) Parse the command line using the usage information.
81
81
82
+ set -o errtrace
83
+
84
+ # requires `set -o errtrace`
85
+ __b3bp_err_report () {
86
+ local error_code
87
+ error_code=${?}
88
+ error " Error in ${__file} in function ${1} on line ${2} "
89
+ exit ${error_code}
90
+ }
91
+ # Uncomment the following line for always providing an error backtrace
92
+ trap ' __b3bp_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
93
+
82
94
# ## Start of boilerplate -- do not edit this block #######################
83
95
export OPENCOARRAYS_SRC_DIR=" ${OPENCOARRAYS_SRC_DIR:- ${PWD%/ } / ../ ../ ..} "
84
96
if [[ ! -f " ${OPENCOARRAYS_SRC_DIR} /src/libcaf.h" ]]; then
You can’t perform that action at this time.
0 commit comments