From 67c2744a456a8fb343be6b6af94a206c7128e53d Mon Sep 17 00:00:00 2001 From: Ed Date: Wed, 13 Sep 2023 12:58:20 +0100 Subject: [PATCH] improve error string --- Source/buildbindingccpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/buildbindingccpp.go b/Source/buildbindingccpp.go index 70be8194..7a8d6ab1 100644 --- a/Source/buildbindingccpp.go +++ b/Source/buildbindingccpp.go @@ -1321,7 +1321,7 @@ func writeExceptionClass(w LanguageWriter, NameSpace string, errors ComponentDef w.Writeln(" if (msg.empty()) {") w.Writeln(" msg = getErrorDescription();") w.Writeln(" }") - w.Writeln(" return std::string(\"Error: \") + getErrorName() + \": \" + msg;") + w.Writeln(" return std::string(getErrorName()) + \": \" + msg;") w.Writeln(" }") w.Writeln("};")