fix(dashboard): surface launch/crash failures (#100) #102

Merged
didericis merged 3 commits from fix/dashboard-crash-logging into main 2026-05-29 00:27:22 -04:00
Showing only changes of commit 7b2474a5d3 - Show all commits
-10
View File
@@ -44,7 +44,6 @@ on-disk files.
from __future__ import annotations from __future__ import annotations
import ipaddress import ipaddress
import json
import os import os
import re import re
from dataclasses import dataclass, field, replace from dataclasses import dataclass, field, replace
@@ -969,15 +968,6 @@ def _section_dict(value: object, label: str) -> dict[str, object]:
return _as_json_object(value, label) return _as_json_object(value, label)
def _load_json_or_die(path: Path) -> dict[str, object]:
try:
with path.open() as f:
doc: object = json.load(f)
except json.JSONDecodeError:
raise ManifestError(f"bot-bottle.json at {path} is not valid JSON")
return _as_json_object(doc, f"bot-bottle.json at {path}")
def _opt_str(value: object, label: str) -> str: def _opt_str(value: object, label: str) -> str:
if value is None: if value is None:
return "" return ""