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

[augeas-devel] augeas: master - * src/transform.c (store_error): report which lens failed



Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=30c090776d79494e919840453ead519571300b7b
Commit:        30c090776d79494e919840453ead519571300b7b
Parent:        7e21002350be701198c433f19b9329ce06c4b212
Author:        David Lutterkort <lutter redhat com>
AuthorDate:    Fri Mar 20 14:55:46 2009 -0700
Committer:     David Lutterkort <lutter redhat com>
CommitterDate: Fri Mar 20 14:55:46 2009 -0700

* src/transform.c (store_error): report which lens failed

---
 src/transform.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/transform.c b/src/transform.c
index b63e023..2675f23 100644
--- a/src/transform.c
+++ b/src/transform.c
@@ -287,6 +287,13 @@ static int store_error(struct augeas *aug,
             if (err->path != NULL) {
                 err_set(aug, &ep, s_path, "%s%s", path, err->path);
             }
+            if (err->lens != NULL) {
+                char *fi = format_info(err->lens->info);
+                if (fi != NULL) {
+                    err_set(aug, &ep, s_lens, "%s", fi);
+                    free(fi);
+                }
+            }
             err_set(aug, &ep, s_message, "%s", err->message);
         } else if (errnum != 0) {
             const char *msg = strerror(errnum);



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