[augeas-devel] augeas: master - New error code AUG_ENOLENS

David Lutterkort lutter at fedoraproject.org
Wed Jan 6 01:53:49 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=85da153a2ba8dca7c0c7047526e4431a5ab971bb
Commit:        85da153a2ba8dca7c0c7047526e4431a5ab971bb
Parent:        75a1b5a4749d72ee13ab47d9a36cc568e73b529a
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Tue Jan 5 17:20:39 2010 -0800
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Tue Jan 5 17:20:39 2010 -0800

New error code AUG_ENOLENS

Indicates failure to look a lens up by name from /augeas/load/*/lens

  * src/augeas.h (aug_errcode_t): new value AUG_ENOLENS
  * src/augeas.c (errcodes): new entry for AUG_ENOLENS
---
 src/augeas.c |    3 ++-
 src/augeas.h |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/augeas.c b/src/augeas.c
index 59d3743..0f236fa 100644
--- a/src/augeas.c
+++ b/src/augeas.c
@@ -60,7 +60,8 @@ static const char *const errcodes[] = {
     "Invalid path expression",                          /* AUG_EPATHX */
     "No match for path expression",                     /* AUG_ENOMATCH */
     "Too many matches for path expression",             /* AUG_EMMATCH */
-    "Syntax error in lens definition"                   /* AUG_ESYNTAX */
+    "Syntax error in lens definition",                  /* AUG_ESYNTAX */
+    "Lens not found"                                    /* AUG_ENOLENS */
 };
 
 static void tree_mark_dirty(struct tree *tree) {
diff --git a/src/augeas.h b/src/augeas.h
index 6f60a4f..5481efe 100644
--- a/src/augeas.h
+++ b/src/augeas.h
@@ -283,7 +283,8 @@ typedef enum {
     AUG_EPATHX,         /* Invalid path expression */
     AUG_ENOMATCH,       /* No match for path expression */
     AUG_EMMATCH,        /* Too many matches for path expression */
-    AUG_ESYNTAX         /* Syntax error in lens file */
+    AUG_ESYNTAX,        /* Syntax error in lens file */
+    AUG_ENOLENS         /* Lens lookup failed */
 } aug_errcode_t;
 
 /* Return the error code from the last API call */




More information about the augeas-devel mailing list