Make worker script errors more informative. (#35070)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-01-19 02:55:26 -05:00 committed by GitHub
parent 94bca310f7
commit 8bb50fa3c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -434,8 +434,8 @@ impl DedicatedWorkerGlobalScope {
global_scope,
CanGc::note(),
) {
Err(_) => {
println!("error loading script {}", serialized_worker_url);
Err(e) => {
error!("error loading script {} ({:?})", serialized_worker_url, e);
parent_event_loop_sender
.send(CommonScriptMsg::Task(
WorkerEvent,