mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-07 21:18:55 +03:00
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:
parent
86764dbf00
commit
cf8d6848b3
@ -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 ? ":" : "",
|
||||
|
Loading…
Reference in New Issue
Block a user