npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

error-dialog

2.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:137
$ npm install error-dialog
DailyWeeklyMonthlyYearly

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

  • cocoa-dialog - Display common GUI dialogs on macOS