print awaitLet error message

This commit is contained in:
2025-02-03 13:01:07 -06:00
parent 404c15d684
commit 91b1fc7b32

View File

@@ -987,7 +987,9 @@ class Prelude {
#if js
public static dynamic function makeAwaitLetDefaultCatch<TOut>(binding:String):PromiseHandler<Dynamic,TOut> {
return function (reason:Dynamic):Promise<TOut> {
throw 'awaitLet $binding rejected promise: $reason';
var message = 'awaitLet $binding rejected promise: $reason';
print(message);
throw message;
};
}