g_error is meant to be used for programmer errors (causes an abort), not for expected runtime errors.