summaryrefslogtreecommitdiff
path: root/indra/newview/llluamanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llluamanager.cpp')
-rw-r--r--indra/newview/llluamanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp
index c55c44e671..d58ee5ca5f 100644
--- a/indra/newview/llluamanager.cpp
+++ b/indra/newview/llluamanager.cpp
@@ -300,8 +300,7 @@ std::pair<int, LLSD> LLLUAmanager::waitScriptFile(LuaState& L, const std::string
void LLLUAmanager::runScriptFile(LuaState& L, const std::string& filename, script_result_fn cb)
{
- std::string desc{ stringize("runScriptFile('", filename, "')") };
- LLCoros::instance().launch(desc, [&L, desc, filename, cb]()
+ LLCoros::instance().launch(filename, [&L, filename, cb]()
{
llifstream in_file;
in_file.open(filename.c_str());
@@ -310,7 +309,7 @@ void LLLUAmanager::runScriptFile(LuaState& L, const std::string& filename, scrip
{
std::string text{std::istreambuf_iterator<char>(in_file),
std::istreambuf_iterator<char>()};
- auto [count, result] = L.expr(desc, text);
+ auto [count, result] = L.expr(filename, text);
if (cb)
{
cb(count, result);