summaryrefslogtreecommitdiffstats
path: root/raslib
diff options
context:
space:
mode:
Diffstat (limited to 'raslib')
-rw-r--r--raslib/error.cc4
-rw-r--r--raslib/error.hh4
2 files changed, 7 insertions, 1 deletions
diff --git a/raslib/error.cc b/raslib/error.cc
index 1ccc3cc..6647847 100644
--- a/raslib/error.cc
+++ b/raslib/error.cc
@@ -438,6 +438,10 @@ r_Error::setErrorTextOnKind()
strcpy(buffer, "Memory allocation failed");
break;
+ case r_Error_InvalidOptimizationLevel:
+ strcpy(buffer, "Illegal value for optimization level");
+ break;
+
default:
strcpy(buffer, "not specified");
break;
diff --git a/raslib/error.hh b/raslib/error.hh
index 074c37d..0042596 100644
--- a/raslib/error.hh
+++ b/raslib/error.hh
@@ -145,7 +145,9 @@ class r_Error : public std::exception
r_Error_AccesDenied,
r_Error_SystemOverloaded,
- r_Error_MemoryAllocation
+ r_Error_MemoryAllocation,
+
+ r_Error_InvalidOptimizationLevel
};