[gjs: 9/10] context: Fix warning messages
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 9/10] context: Fix warning messages
- Date: Sun, 2 Dec 2018 02:09:43 +0000 (UTC)
commit 45d83fe84198a6e31c3dd63fe35ff0c9bdefa8af
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Dec 1 13:10:33 2018 -0800
context: Fix warning messages
These were pre-existing before refactoring the eval_with_scope()
function.
gjs/context.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 6fc48c78..7ef0378c 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -936,7 +936,7 @@ bool GjsContextPrivate::eval_with_scope(JS::HandleObject scope_object,
/* log and clear exception if it's set (should not be, normally...) */
if (JS_IsExceptionPending(m_cx)) {
- g_warning("eval_in_scope called with a pending exception");
+ g_warning("eval_with_scope() called with a pending exception");
return false;
}
@@ -965,7 +965,7 @@ bool GjsContextPrivate::eval_with_scope(JS::HandleObject scope_object,
if (JS_IsExceptionPending(m_cx)) {
g_warning(
- "EvaluateScript returned true but exception was pending; "
+ "JS::Evaluate() returned true but exception was pending; "
"did somebody call gjs_throw() without returning false?");
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]