>From 5e32454f2fb3390eea6a3af8ddbe8ad410823aec Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <c...@gmx.com>
Date: Fri, 1 Jul 2011 13:49:18 +0300
Subject: [PATCH] xmlconfig: Make the error message more informative


Signed-off-by: Lauri Kasanen <c...@gmx.com>
---
 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 0226b38..23a0ce4 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)
-- 
1.7.2.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to