[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] augeas: master - * src/put.c (create_concat): fix goofy error message



Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=9da198dc2cc2e34929bed67b41aec20054e1a934
Commit:        9da198dc2cc2e34929bed67b41aec20054e1a934
Parent:        71849c4b9ee328d3d5158be52b34a7bdc3cb431f
Author:        David Lutterkort <lutter redhat com>
AuthorDate:    Thu Mar 19 15:52:47 2009 -0700
Committer:     David Lutterkort <lutter redhat com>
CommitterDate: Thu Mar 19 15:52:47 2009 -0700

* src/put.c (create_concat): fix goofy error message

---
 src/put.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/put.c b/src/put.c
index e85ae96..a305890 100644
--- a/src/put.c
+++ b/src/put.c
@@ -598,7 +598,8 @@ static void create_concat(struct lens *lens, struct state *state) {
     set_split(state, split);
     for (int i=0; i < lens->nchildren; i++) {
         if (state->split == NULL) {
-            syntax_error(lens->info, "Short split for concat");
+            put_error(state, lens,
+                      "Not enough components in concat");
             list_free(split);
             return;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]