Made no-value error non-fatal in gswe_timestamp_calculate_gregorian()

This commit is contained in:
Gergely Polonkai 2013-09-16 16:12:04 +02:00
parent a92fdca8b2
commit 2f63859c0b
1 changed files with 2 additions and 1 deletions

View File

@ -375,7 +375,8 @@ gswe_timestamp_calculate_gregorian(GsweTimestamp *timestamp)
}
if (timestamp->priv->valid_dates == 0) {
g_error("This timestamp object holds no valid values. This can't be good.");
g_set_error(err, GSWE_TIMESTAMP_ERROR, GSWE_TIMESTAMP_ERROR_NO_VALID, "This timestamp object holds no valid values");
return;
}
g_warning("This method is not implemented yet.");