Incomplete backtrace for Unhandled promise rejection
System information
What is your operating system and version? Linux, Arch
What is your version of GJS? 1.68.1
Steps to reproduce
There's an error in my code, but I don't know where because gjs doesn't handle uncaught rejected promises correctly. It prints:
Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
So far so good, but the stack trace has only one line, which is the line where I call the run()
method on a Gtk.Application
, and there is no description of the error.
Current behaviour
What happened that made it evident there was a problem?
The backtrace contains no information about the origin of the exception/rejection.
Expected behaviour
What did you expect to see instead?
When reporting the unhandled error, a description of the original error and a full backtrace should be shown, so I can easily find its source.