Socket
Book a DemoInstallSign in
Socket

error-dialog

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-dialog

Display an error in a GUI dialog

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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

  • cocoa-dialog - Display common GUI dialogs on macOS

Keywords

error

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts