pass error with output