@@ -37,14 +37,14 @@ basalt.load() {
3737return
3838;;
3939-* )
40- printf ' %s\n' " Error: basalt.load : Flag '$arg ' not recognized"
40+ printf ' %s\n' " Error: basalt: Flag '$arg ' not recognized" >&2
4141return 1
4242;;
4343esac done
4444
4545if (( $# == 0 )) ; then
4646# WET (gamma)
47- printf ' %s\n' " Error: basalt.load : Must specify arguments
47+ printf ' %s\n' " Error: basalt: Must specify arguments >&2
4848
4949Usage:
5050 basalt.load [flags] <package> <file>
@@ -71,7 +71,7 @@ Pass '--help' for more info"
7171local __basalt_file=" ${2:- } "
7272
7373if [ -z " $__basalt_pkg_path " ]; then
74- printf ' %s\n' " Error: basalt.load : Missing package as first parameter"
74+ printf ' %s\n' " Error: basalt: Missing package as first parameter" >&2
7575if [ " $__basalt_flag_global " = ' yes' ]; then
7676return 1
7777else
@@ -95,7 +95,7 @@ Pass '--help' for more info"
9595fi
9696
9797if (( ${# __basalt_pkg_path_full_array[@]} > 1 )) ; then
98- printf ' %s\n' " Error: basalt.load : Multiple versions of the package '$__basalt_pkg_path ' exists"
98+ printf ' %s\n' " Error: basalt: Multiple versions of the package '$__basalt_pkg_path ' exists" >&2
9999
100100if [ " $__basalt_flag_global " = ' yes' ]; then
101101return 1
@@ -120,9 +120,9 @@ Pass '--help' for more info"
120120
121121local regex=" ^[^/]+/[^/]+$"
122122if [[ " $__basalt_pkg_path " =~ $regex ]]; then
123- printf ' %s\n' " Error: basalt.load : Package '$__basalt_pkg_path ' is not a valid. It must include the website domain"
123+ printf ' %s\n' " Error: basalt: Package '$__basalt_pkg_path ' is not a valid. It must include the website domain" >&2
124124else
125- printf ' %s\n' " Error: basalt.load : Package '$__basalt_pkg_path ' is not installed $__basalt_str "
125+ printf ' %s\n' " Error: basalt: Package '$__basalt_pkg_path ' is not installed $__basalt_str " >&2
126126fi
127127
128128if [ " $__basalt_flag_global " = ' yes' ]; then
@@ -133,7 +133,7 @@ Pass '--help' for more info"
133133fi
134134
135135if [ ! -f " $__basalt_pkg_path_full /$__basalt_file " ]; then
136- printf ' %s\n' " Error: basalt.load : File '$__basalt_file ' not found in package '$__basalt_pkg_path '"
136+ printf ' %s\n' " Error: basalt: File '$__basalt_file ' not found in package '$__basalt_pkg_path '" f >&2
137137if [ " $__basalt_flag_global " = ' yes' ]; then
138138return 1
139139else
0 commit comments