Open Bug 1059706 Opened 10 years ago Updated 2 years ago

[Toolkit] Throw errors, not strings or numbers

Categories

(Toolkit :: General, defect)

defect

Tracking

()

People

(Reporter: Yoric, Unassigned, Mentored)

References

Details

Many items in toolkit/ call `throw Components.results.XXX` or even `throw someString`. This makes debugging much more complicated, as numbers/strings do not contain any stack information. We should fix this. I will mark this as a mentored good first bug, although we will want to decompose this into smaller bugs to simplify reviews and landing.
Hi, I am interested in fixing this. I would be glad if you gave me more insight. Thanks, Rajat
Flags: needinfo?(dteller)
No longer blocks: 394686
Depends on: 394686
Thanks for your interest, Rajat. Let's start with bug 394686, which is a subset of this bug.
Blocks: 394686
No longer depends on: 394686
Flags: needinfo?(dteller)
No longer blocks: 394686
Depends on: 394686
Is this causing problems in practice? I'm not opposed to fixing it, I'm just curious. Thanks.
Yeah, this kind of practice has been known to cause friggingly-hard-to-to-debug warnings, e.g. bug 1059329.
Removing the "mentored" status, as I have divided the bug into smaller (mentored) tasks.
Whiteboard: [lang=js][good first bug]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.