From 71517022d0f9f735d408517969cb21d542f75094 Mon Sep 17 00:00:00 2001 From: zolliker Date: Fri, 29 Apr 2011 14:09:21 +0000 Subject: [PATCH] changed - to {} in error message --- scriptcontext.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scriptcontext.c b/scriptcontext.c index 684c2f5d..5cd798a4 100644 --- a/scriptcontext.c +++ b/scriptcontext.c @@ -420,16 +420,17 @@ static char *SctActionHandler(void *actionData, char *lastReply, * * Replaced <> by - because it messed up XML for Gumtree * Mark Koennecke + * replaced by {} MZ */ snprintf(eprop, sizeof eprop, "error_during_%s", data->name); emsg = GetHdbProp(node, eprop); if (emsg == NULL || con != controller->conn) { GetHdbPath(node, path, sizeof path); SCPrintf(con, eError, - "ERROR: action - %s - in {%s} node %s:\nERROR: %s", + "ERROR: action {%s} in {%s} node %s:\nERROR: %s", data->name, origScript, path, result); } - snprintf(msg, sizeof msg, "- %s - %s", origScript, result); + snprintf(msg, sizeof msg, "{%s} %s", origScript, result); if (strcasecmp(data->name, "read") == 0) { SetHdbProperty(node, "geterror", result); } @@ -482,7 +483,7 @@ static char *SctActionHandler(void *actionData, char *lastReply, if (emsg != NULL) { GetHdbPath(node, path, sizeof path); SCPrintf(con, eError, - "action - %s -: success after error message (%s)\n %s", + "action {%s}: success after error message (%s)\n %s", data->name, path, emsg); SetHdbProperty(node, eprop, NULL); }