Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion supervisor/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def api_return_error(
if check_exception_chain(error, DockerAPIError):
message = format_message(message)
if not message:
message = "Unknown error, see supervisor"
message = "Unknown error, see supervisor logs (check with 'ha supervisor logs')"

match error_type:
case const.CONTENT_TYPE_TEXT:
Expand Down
2 changes: 1 addition & 1 deletion supervisor/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class SupervisorJobError:
"""Representation of an error occurring during a supervisor job."""

type_: type[HassioError] = HassioError
message: str = "Unknown error, see supervisor logs"
message: str = "Unknown error, see supervisor logs (check with 'ha supervisor logs')"
stage: str | None = None

def as_dict(self) -> dict[str, str | None]:
Expand Down
4 changes: 2 additions & 2 deletions tests/jobs/test_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async def test_notify_on_change(coresys: CoreSys, ha_ws_client: AsyncMock):
"errors": [
{
"type": "HassioError",
"message": "Unknown error, see supervisor logs",
"message": "Unknown error, see supervisor logs (check with 'ha supervisor logs')",
"stage": "test",
}
],
Expand Down Expand Up @@ -226,7 +226,7 @@ async def test_notify_on_change(coresys: CoreSys, ha_ws_client: AsyncMock):
"errors": [
{
"type": "HassioError",
"message": "Unknown error, see supervisor logs",
"message": "Unknown error, see supervisor logs (check with 'ha supervisor logs')",
"stage": "test",
}
],
Expand Down
Loading