fix: add eval script failed log

This commit is contained in:
YuKun Liu committed 2022-05-11 14:29:31 +08:00
1 parent b7e9dca87c
commit 8aadeff9d2
1 file changed
+2 -1
+2 -1
View File
@@ -195,7 +195,8 @@ pub(super) fn handler(
Eval(code) => {
if let Err(e) = webview.evaluate_script(code.as_str()) {
log::error!("Eval script error: {e}");
// we can't panic this error.
log::warn!("Eval script error: {e}");
}
}
}