Dimas Cabré i Chacón
05/07/2026, 10:57 AMPylon
05/07/2026, 10:57 AMgt feedback --with-debug-context <any message>Pylon
05/07/2026, 1:16 PMDimas Cabré i Chacón
05/07/2026, 1:22 PMPylon
05/07/2026, 1:30 PMDimas Cabré i Chacón
05/07/2026, 1:31 PMDimas Cabré i Chacón
05/07/2026, 1:39 PMPylon
05/07/2026, 1:43 PMDimas Cabré i Chacón
05/07/2026, 1:45 PMclass CommandError(Exception):
exit_code: int
def __init__(self, message: str = "") -> None:
super().__init__(message)
def __str__(self) -> str:
message = super().__str__()
return f"[exit {self.exit_code}] {message}" if message else f"[exit {self.exit_code}]"
class InvalidOptionsError(CommandError):
exit_code = EXIT_INVALID_OPTIONS
class UndefinedEnvError(CommandError):
exit_code = EXIT_UNDEFINED_ENV
class CommandSpecificError(CommandError):
def __init__(self, exit_code: int, message: str = "") -> None:
if exit_code < COMMAND_SPECIFIC_MIN_EXIT_CODE:
raise ValueError(
f"command-specific exit codes must be >= {COMMAND_SPECIFIC_MIN_EXIT_CODE}, got {exit_code}"
)
self.exit_code = exit_code
super().__init__(message)Pylon
05/07/2026, 2:52 PMDimas Cabré i Chacón
05/07/2026, 3:51 PMPylon
05/07/2026, 7:18 PMDimas Cabré i Chacón
05/07/2026, 7:20 PMDimas Cabré i Chacón
05/08/2026, 8:32 AM