Skip to content

Commit 7abb08c

Browse files
committed
docs: Document dialog.showErrorBox, fixes electron#909
1 parent 31bdfc2 commit 7abb08c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/api/dialog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,10 @@ the index of the clicked button.
8383

8484
If a `callback` is passed, the API call would be asynchronous and the result
8585
would be passed via `callback(response)`
86+
87+
## dialog.showErrorBox(title, content)
88+
89+
Runs a modal dialog that shows an error message.
90+
91+
This API can be called safely before the `ready` event of `app` module emits, it
92+
is usually used to report errors in early stage of startup.

0 commit comments

Comments
 (0)