Output error message when recovering from panic in Test and Production