Make Assert() throw an exception too.

This commit is contained in:
ryan
2015-04-08 14:57:47 -04:00
parent 6dd7d3e901
commit aaa19c9dca
+1 -1
View File
@@ -125,7 +125,7 @@ void Log::Assert(bool condition, const std::string& message)
free(messages);
#endif
exit(1);
throw std::runtime_error("Log::Assert() failed:" + message);
}
}
#else