Skip to main content

fatal_error

Function fatal_error 

Source
pub fn fatal_error(title: &str, message: &str)
Expand description

Tells the user the app can’t run, in an app-modal critical NSAlert (runModal, which runs its own loop: there may be no window to put a sheet on), and returns once they dismiss it. The app comes to the front for it, as a launch that fails would otherwise show nothing. Off the main thread there’s nothing AppKit can show, and it returns at once.