datalad_next.runners.CommandError

exception datalad_next.runners.CommandError(cmd: str | list[str] = '', msg: str = '', code: int | None = None, stdout: str | bytes = '', stderr: str | bytes = '', cwd: str | os.PathLike | None = None, **kwargs: Any)[source]

Thrown if a command call fails.

Note: Subclasses should override to_str rather than __str__ because to_str is called directly in datalad.cli.main.