Change a couple of g_error calls to call g_warning