Merge pull request #13821 from atom/wl-notification-stack-detail

📝 Clarify that stack only has an effect if detail is present as well
This commit is contained in:
Sadick 2021-09-03 07:40:40 +03:00 committed by GitHub
commit 4975493e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,7 @@ module.exports = class NotificationManager {
// in the notification header. Defaults to `'flame'`.
// * `stack` (optional) A preformatted {String} with stack trace
// information describing the location of the error.
// Requires `detail` to be set.
//
// Returns the {Notification} that was added.
addError(message, options) {
@ -177,6 +178,7 @@ module.exports = class NotificationManager {
// in the notification header. Defaults to `'bug'`.
// * `stack` (optional) A preformatted {String} with stack trace
// information describing the location of the error.
// Requires `detail` to be set.
//
// Returns the {Notification} that was added.
addFatalError(message, options) {