Skip to content

Commit

Permalink
refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails
Browse files Browse the repository at this point in the history
rpm-ostree had code to check for this, which didn't actually work.
See coreos/rpm-ostree#56

I don't see a no backwards compatibility concern in changing this, as
it's unlikely a caller would try to sensibly disambiguate FAILED.
  • Loading branch information
cgwalters committed Jan 6, 2015
1 parent 86764db commit 8c7b729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libostree/ostree-repo-refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? ":" : "",
Expand Down

0 comments on commit 8c7b729

Please sign in to comment.