Print error to stderr
This commit is contained in:
parent
2bde0885ef
commit
0cc49a3dea
1 changed files with 4 additions and 4 deletions
|
|
@ -121,10 +121,10 @@ pkcsGetTokenSlot() {
|
|||
SLOT=$( egrep "(^slot|stdll = libpkcs11_$TYPE.so)" $CONF | grep -B 1 "libpkcs11" | sed -n -e '1,1 s/slot //' -e '1,1 p' )
|
||||
echo $SLOT
|
||||
else
|
||||
echo "Error: pkcsGetTokenSlot: could not find type $TYPE in $CONF"
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||
cat $CONF
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||
echo "Error: pkcsGetTokenSlot: could not find type $TYPE in $CONF" >&2
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >&2
|
||||
cat $CONF >&2
|
||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue