From: mfranz Date: Mon, 20 Jun 2005 18:53:00 +0000 (+0000) Subject: - output property path in error messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d977c07908960acd7d202770589da3bb8d442212;p=flightgear.git - output property path in error messages --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 1c93b9cfc..d999cc8cb 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -471,13 +471,9 @@ naRef FGNasalSys::parse(const char* filename, const char* buf, int len) bool FGNasalSys::handleCommand(const SGPropertyNode* arg) { - // Parse the Nasal source. I'd love to use the property name of - // the argument, but it's actually a *clone* of the original - // location in the property tree. arg->getPath() returns an empty - // string. const char* nasal = arg->getStringValue("script"); const char* moduleName = arg->getStringValue("module"); - naRef code = parse("", nasal, strlen(nasal)); + naRef code = parse(arg->getPath(true), nasal, strlen(nasal)); if(naIsNil(code)) return false; naRef locals = naNil();