From 3f514b1f76ded6ea14871ecc05148ed6c84100e3 Mon Sep 17 00:00:00 2001
From: lhausamm <loic_hausammann@hotmail.com>
Date: Wed, 4 Apr 2018 10:51:55 +0200
Subject: [PATCH] improve error message

---
 src/common_io.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/common_io.c b/src/common_io.c
index 2051d682e8..5c2aba0377 100644
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -884,7 +884,9 @@ void io_check_output_fields(const struct swift_params* output_fields,
           continue;
         }
       }
-      if (!found) error("Unable to find field corresponding to %s", param_name);
+      if (!found)
+	error("Unable to find field corresponding to %s in %s",
+	      param_name, output_fields->fileName);
     }
   }
 }
-- 
GitLab