Convert RuntimeException to error log message