- or download this
sub slick()
{
...
{
log-error( ~$result );
}
- or download this
sub slick()
{
...
-> $error {
log-error $error.exception.message
}
- or download this
proto sub log-error ( $ ) {*}
multi sub log-error ( Str $message ) {
...
multi sub log-error ( Failure $failure ) {
samewith $failure.exception.message
}
- or download this
# this has the same effect as `but False`
'Some error message' but role { method Bool ( --> False ) {} }