assert: throw if launching xmessage fails

This commit is contained in:
Maxime Coste 2012-10-19 03:53:10 +02:00
parent abf514f305
commit 28c8acf80a

View File

@ -20,7 +20,8 @@ void on_assert_failed(const char* message)
int res = system(("xmessage -buttons 'quit:0,ignore:1' '"_str + message + "'").c_str());
switch (res)
{
case 0:
case -1:
case 0:
throw assert_failed(message);
case 1:
return;