mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-26 19:50:55 +00:00
!7914 将napi对pending exception的打印由debug改回error级别
Merge pull request !7914 from qibao/master
This commit is contained in:
commit
e6799692aa
@ -3892,7 +3892,7 @@ void JSNApi::PrintExceptionInfo(const EcmaVM *vm)
|
||||
}
|
||||
JSHandle<EcmaString> result = JSTaggedValue::ToString(thread, exceptionHandle);
|
||||
ecmascript::CString string = ConvertToString(*result);
|
||||
LOG_ECMA(DEBUG) << string;
|
||||
LOG_ECMA(ERROR) << string;
|
||||
ThrowException(vm, exception);
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
||||
CROSS_THREAD_CHECK(vm); \
|
||||
do { \
|
||||
if (thread->HasPendingException()) { \
|
||||
LOG_ECMA(DEBUG) << "Pending exception before " << __FUNCTION__ << " called in line:" \
|
||||
LOG_ECMA(ERROR) << "Pending exception before " << __FUNCTION__ << " called in line:" \
|
||||
<< __LINE__ << ", exception details as follows:"; \
|
||||
JSNApi::PrintExceptionInfo(vm); \
|
||||
return returnVal; \
|
||||
@ -60,7 +60,7 @@
|
||||
CROSS_THREAD_CHECK(vm); \
|
||||
do { \
|
||||
if (thread->HasPendingException()) { \
|
||||
LOG_ECMA(DEBUG) << "Pending exception before " << __FUNCTION__ << " called, in line:" \
|
||||
LOG_ECMA(ERROR) << "Pending exception before " << __FUNCTION__ << " called, in line:" \
|
||||
<< __LINE__ << ", exception details as follows:"; \
|
||||
JSNApi::PrintExceptionInfo(vm); \
|
||||
return; \
|
||||
|
Loading…
Reference in New Issue
Block a user