From aa27e9ff7eb2971dcaf128793c195d91c2986a66 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Thu, 29 Dec 2016 12:21:57 -0500 Subject: [PATCH] IO_ERROR: improve What() message --- common/exceptions.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/exceptions.cpp b/common/exceptions.cpp index bc90942bb9..d3cec5683d 100644 --- a/common/exceptions.cpp +++ b/common/exceptions.cpp @@ -32,7 +32,11 @@ const wxString IO_ERROR::What() const { - return wxString( "IO_ERROR: " ) + Problem() + "\n\t" + Where(); +#ifdef DEBUG + return wxString( "IO_ERROR: " ) + Problem() + "\n\n" + Where(); +#else + return Problem(); +#endif }