Catch the assert exception as a command error.