1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 05:43:33 +00:00

Fixed bug, where returned value has trailing whitepsace

This commit is contained in:
Bryan Roe
2022-11-02 08:45:43 -07:00
parent 9d38b7ea43
commit 597fade801

View File

@@ -88,11 +88,11 @@ function sessionDispatch(tsid, parent, method, args)
child.waitExit();
if (child.exitCode == 0)
{
return (child.stdout.str); // If the return code was 0, then relay the response from stdout
return (child.stdout.str.trim()); // If the return code was 0, then relay the response from stdout
}
else
{
throw (child.stdout.str); // If the return code was nonzero, then the stdout response is the exception that should be bubbled
throw (child.stdout.str.trim()); // If the return code was nonzero, then the stdout response is the exception that should be bubbled
}
}