Mercurial > spidermonkey-playground
diff memory_profiler.cpp @ 73:b87b6ebb6e86
Memory profiler server is now much better at reporting errors.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 25 Jun 2009 18:38:01 -0700 |
parents | eca8642eed4a |
children |
line wrap: on
line diff
--- a/memory_profiler.cpp Thu Jun 25 18:16:41 2009 -0700 +++ b/memory_profiler.cpp Thu Jun 25 18:38:01 2009 -0700 @@ -363,7 +363,8 @@ if (!JS_EvaluateScript(serverCx, serverGlobal, source, fileSize, SERVER_FILENAME, 1, &serverRval)) { - JS_ReportError(cx, "Server failed."); + TCB_handleError(serverCx, serverGlobal); + JS_ReportError(cx, "Running server script failed."); return JS_FALSE; }