Use the Electron dialog showErrorBox to display an error message to the user. Not much to it:
- Call it on the main process.
- Require dialog.
- Call showErrorBox() with a title and a message.
This is what the message will look like on macOS in Electorn tutorial app:
The file is called dialog.js in the github repo if you want to look at the code.