From 4c36fa1fdf6c353fb01f2ec80da39a52e969fb5f Mon Sep 17 00:00:00 2001 From: KnorpelSenf Date: Wed, 1 Dec 2021 15:22:11 +0100 Subject: chore: Fix typo in no-pending-ops error message (#12948) --- core/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/runtime.rs b/core/runtime.rs index d80518de6..5db11d9c5 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -841,7 +841,7 @@ impl JsRuntime { { // pass, will be polled again } else { - let msg = "Module evaluation is still pending but there are no pending ops or dynamic imports. This situation is often caused by unresolved promise."; + let msg = "Module evaluation is still pending but there are no pending ops or dynamic imports. This situation is often caused by unresolved promises."; return Poll::Ready(Err(generic_error(msg))); } } @@ -854,7 +854,7 @@ impl JsRuntime { { // pass, will be polled again } else if state.dyn_module_evaluate_idle_counter >= 1 { - let mut msg = "Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promise. + let mut msg = "Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promises. Pending dynamic modules:\n".to_string(); for pending_evaluate in &state.pending_dyn_mod_evaluate { let module_info = module_map -- cgit v1.2.3