Skip to main content

handle_fatal_error

Function handle_fatal_error 

Source
pub fn handle_fatal_error(error: Error, verbose: u8) -> !
Expand description

Handle fatal errors and exit with appropriate status code

This function processes errors and displays them according to their type:

  • For ProdigyError: Shows user message always, developer message in verbose mode
  • For other errors: Shows error message and attempts to determine exit code

ยงVerbose Mode Behavior

  • verbose = 0: User-friendly messages only
  • verbose >= 1: Includes full developer context with error chain