Skip to content

Cannot inspect Rust panics #557

Open
@Hofer-Julian

Description

@Hofer-Julian

If Rust fails to compile, the error message is nicely visible in the console.
However, if Rust panics at runtime, all you get is:

(re.sonny.Workbench.Devel:4): Gjs-WARNING **: 20:30:17.056: 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:
  save@resource:///re/sonny/Workbench/Document.js:18:8
  Document/start/handler_id<@resource:///re/sonny/Workbench/Document.js:27:7
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions