Good practice would also be to NOT enter the error control code what so ever, unless u errored, this of course is dealt with by the IF in it, but it would be better practice to not do it.
alias test {
var %x = hello
echo -a $dgfdgf(hello)
return
:error
if ($error) { echo -a error!! $v1 | reseterror }
}