Closed
Bug 1806720
Opened 2 years ago
Closed 2 years ago
Make no-cu-reportError rule cleverer about how it replaces `Cu.reportError("Oh no, an error: " + ex)`
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox110 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
Details
Attachments
(1 file)
After bug 1801092 we replace code that does this:
Cu.reportError("Oh no, an error: " + ex)
with this:
console.error("Oh no, an error: " + ex)
That's neat, but we could automatically go one step further and do:
console.error("Oh no, an error: ", ex)
which benefits from other formatting niceties in the console.
I think doing this is reasonably straightforward, and that the pattern is sufficiently common that it's worth making the rule smarter.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/cf68a966182b
make no-cu-reportError rule smarter about replacements, r=cmkm,Standard8
Comment 3•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox110:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•