refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails

rpm-ostree had code to check for this, which didn't actually work.

I don't see a no backwards compatibility concern in changing this, as
it's unlikely a caller would try to sensibly disambiguate FAILED.
This commit is contained in:
Colin Walters 2015-01-06 18:47:04 -05:00
parent 86764dbf00
commit cf8d6848b3

View File

@ -259,7 +259,7 @@ resolve_refspec_fallback (OstreeRepo *self,
}
else if (!allow_noent)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
"Refspec '%s%s%s' not found",
remote ? remote : "",
remote ? ":" : "",