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

David Lutterkort lutter at fedoraproject.org
Thu Oct 1 00:23:53 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=a7d65f1f7948b1b3bb990553f809cd039c2eecf8
Commit:        a7d65f1f7948b1b3bb990553f809cd039c2eecf8
Parent:        41ba8d6a05beafc4ab8f9d7ecf99ad1d8d505a7f
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Wed Sep 30 17:02:21 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Sep 30 17:20:39 2009 -0700

New error code AUG_ESYNTAX

---
 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 3ad2eac..37faee3 100644
--- a/src/augeas.c
+++ b/src/augeas.c
@@ -58,7 +58,8 @@ static const char *const errcodes[] = {
     "Internal error (please file a bug)",               /* AUG_EINTERNAL */
     "Invalid path expression",                          /* AUG_EPATHX */
     "No match for path expression",                     /* AUG_ENOMATCH */
-    "Too many matches for path expression"              /* AUG_EMMATCH */
+    "Too many matches for path expression",             /* AUG_EMMATCH */
+    "Syntax error in lens definition"                   /* AUG_ESYNTAX */
 };
 
 static void tree_mark_dirty(struct tree *tree) {
diff --git a/src/augeas.h b/src/augeas.h
index d31f845..6f60a4f 100644
--- a/src/augeas.h
+++ b/src/augeas.h
@@ -282,7 +282,8 @@ typedef enum {
     AUG_EINTERNAL,      /* Internal error (bug) */
     AUG_EPATHX,         /* Invalid path expression */
     AUG_ENOMATCH,       /* No match for path expression */
-    AUG_EMMATCH         /* Too many matches for path expression */
+    AUG_EMMATCH,        /* Too many matches for path expression */
+    AUG_ESYNTAX         /* Syntax error in lens file */
 } aug_errcode_t;
 
 /* Return the error code from the last API call */




More information about the augeas-devel mailing list