This package is still in development and not stable at this time! Features and functionalities might not work as expected.

backpy backpy backpy
/
  • Getting Started
    • Installation
    • First Steps
  • Basic Concepts
  • Workflows
    • Automation
    • Common
    • Maintenance
    • Setup
      • Creating a Remote
      • Creating a File Backup Space
  • Troubleshooting
  • Reference
    • API Reference
      • CLI (backpy.cli)
        • Colors (backpy.cli.colors)
        • Elements (backpy.cli.elements)
      • Core (backpy.core)
        • Backup (backpy.core.backup)
        • Config (backpy.core.config)
        • Remote (backpy.core.remote)
        • Space (backpy.core.space)
        • Utils (backpy.core.utils)
    • CLI Reference
      • backup
      • config
      • remote
      • schedule
      • space
  • About backpy
    • Roadmap
    • License
    • Acknowledgements
    • Usage of Generative AI
    • Changelog

On this page

  • print_error_message()
tgross03/backpy 0 0
Edit this page
  1. backpy /
  2. Reference /
  3. API Reference /
  4. CLI (backpy.cli) /
  5. Elements (backpy.cli.elements) /
  6. print_error_message

print_error_message¶

backpy.cli.elements.print_error_message(error, debug)¶

Print error messages depending on the debug mode. If the debug mode is enabled, the exception is raised, resulting in a stack trace. Otherwise, an error message is printed.

Parameters:
error: Exception

The exception to raise / print.

debug: bool

Whether debug mode is enabled.

Parameters:
  • error (Exception)

  • debug (bool)

Return type:

None

Previous
Elements (backpy.cli.elements)
Next
_validate_always

© 2025, Tom Groß

Made with Sphinx and Shibuya theme.