scenario: Use g_error instead of exit (0)

This commit is contained in:
Thibault Saunier 2013-10-05 12:43:27 -03:00
parent 045cc47dcc
commit 820ebe3b26

View file

@ -834,11 +834,8 @@ done:
if (lfilename)
g_free (lfilename);
if (ret == FALSE) {
g_printerr ("Could not set scenario %s => EXIT\n", scenario_name);
exit (0);
}
if (ret == FALSE)
g_error ("Could not set scenario %s => EXIT\n", scenario_name);
return ret;