Change warning messages so the user may know if it is fatal

This commit is contained in:
Gergely Polonkai 2014-09-24 18:54:43 +02:00
parent 9991269c8e
commit 5b61a42976

View File

@ -915,15 +915,17 @@ gswe_moment_calculate_planet(GsweMoment *moment,
x2,
serr
)) < 0) {
g_warning("Swiss Ephemeris error: %s", serr);
g_set_error(
err,
GSWE_ERROR, GSWE_ERROR_SWE_FATAL,
"Swiss Ephemeris error: %s",
"Swiss Ephemeris fatal error: %s",
serr
);
return;
} else if (ret != (SEFLG_SPEED | SEFLG_TOPOCTR)) {
g_warning("Swiss Ephemeris non-fatal error: %s", serr);
g_set_error(
err,
GSWE_ERROR, GSWE_ERROR_SWE_NONFATAL,