error-dialog

2.0.0 • Public • Published

error-dialog

Display an error in a GUI dialog

macOS only, but pull request welcome for Linux and Windows support.

Install

$ npm install error-dialog

Usage

import errorDialog from 'error-dialog';

const error = new Error('Expected more unicorns!');

await errorDialog(error, '🦄');

API

errorDialog(error, windowTitle?)

Returns a Promise.

error

Type: Error | string

An error or error message.

windowTitle

Type: string

Related

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    3
  • 1.0.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i error-dialog

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

3.04 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus