added output of error messages to actions