[ostree] refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails
- Date: Wed, 7 Jan 2015 01:44:43 +0000 (UTC)
commit cf8d6848b3264eb5b92590d9802c1a0bd579b4c6
Author: Colin Walters <walters verbum org>
Date: Tue Jan 6 18:47:04 2015 -0500
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.
src/libostree/ostree-repo-refs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-refs.c b/src/libostree/ostree-repo-refs.c
index ca584b6..5588c83 100644
--- a/src/libostree/ostree-repo-refs.c
+++ b/src/libostree/ostree-repo-refs.c
@@ -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 ? ":" : "",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]