Mesa (master): xmlconfig: Make the error message more informative

Corbin Simpson csimpson at kemper.freedesktop.org
Wed Aug 17 07:39:46 UTC 2011


Module: Mesa
Branch: master
Commit: b629d5ba24f76ed6af35455a874d351fde1e5bbe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b629d5ba24f76ed6af35455a874d351fde1e5bbe

Author: Lauri Kasanen <cand at gmx.com>
Date:   Fri Jul  1 13:49:18 2011 +0300

xmlconfig: Make the error message more informative

---

 src/mesa/drivers/dri/common/xmlconfig.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 77967ac..12dd31b 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -567,7 +567,7 @@ static void parseOptInfoAttr (struct OptInfoData *data, const XML_Char **attr) {
     } else
 	defaultVal = attrVal[OA_DEFAULT];
     if (!parseValue (&cache->values[opt], cache->info[opt].type, defaultVal))
-	XML_FATAL ("illegal default value: %s.", defaultVal);
+	XML_FATAL ("illegal default value for %s: %s.", cache->info[opt].name, defaultVal);
 
     if (attrVal[OA_VALID]) {
 	if (cache->info[opt].type == DRI_BOOL)




More information about the mesa-commit mailing list