Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blockchain
nucleo
Commits
896d2996
Commit
896d2996
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Supporting better error text
parent
86b11407
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/libbfa.sh
+6
-1
6 additions, 1 deletion
bin/libbfa.sh
with
6 additions
and
1 deletion
bin/libbfa.sh
+
6
−
1
View file @
896d2996
...
@@ -10,7 +10,12 @@ function fatal()
...
@@ -10,7 +10,12 @@ function fatal()
exit
1
exit
1
}
}
trap
"fatal Argh!"
ERR
function
errtrap
{
fatal
"
${
ERRTEXT
:-
Argh
!
}
"
}
trap
errtrap ERR
test
-n
"
$BASH_VERSION
"
||
test
-n
"
$BASH_VERSION
"
||
fatal
"This file must be source(d) from bash."
fatal
"This file must be source(d) from bash."
test
"
$(
caller
2>/dev/null |
awk
'{print $1}'
)
"
!=
"0"
||
test
"
$(
caller
2>/dev/null |
awk
'{print $1}'
)
"
!=
"0"
||
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment