summaryrefslogtreecommitdiff
path: root/library/globalFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/globalFunctions.cpp')
-rw-r--r--library/globalFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/globalFunctions.cpp b/library/globalFunctions.cpp
index d91fa8b1..5afb1650 100644
--- a/library/globalFunctions.cpp
+++ b/library/globalFunctions.cpp
@@ -71,7 +71,7 @@ int globalFunctions::wxStringToInt(const wxString& number)
if (number.ToLong(&result))
return result;
else
- throw std::runtime_error("Error when converting number to long");
+ throw RuntimeException(_("Error when converting wxString to long"));
}
@@ -82,7 +82,7 @@ double globalFunctions::wxStringToDouble(const wxString& number)
if (number.ToDouble(&result))
return result;
else
- throw std::runtime_error("Error when converting number to double");
+ throw RuntimeException(_("Error when converting wxString to double"));
}
bgstack15