refactor: FaiError -> ChainError (SDK stub rename lockstep)
Some checks failed
Security / Security check (push) Failing after 1s

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-11 23:14:33 +02:00
parent bb606a8b23
commit 7a38cd58aa
13 changed files with 30 additions and 30 deletions

View file

@ -95,14 +95,14 @@ class _AuditPageState extends State<AuditPage> {
_refresh();
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'audit.clear', e);
showChainErrorSnack(context, 'audit.clear', e);
}
}
// _friendly was an inline shadow of friendlyError() in
// data/friendly_error.dart kept only because the original
// call site predated the central mapper. Removed in favour
// of showFaiErrorSnack, which uses friendlyError under the
// of showChainErrorSnack, which uses friendlyError under the
// hood (with proper gRPC-code mapping + selectable
// copy-affordance).

View file

@ -457,7 +457,7 @@ class _PathRow extends StatelessWidget {
);
if (!context.mounted) return;
if (!r.ok) {
showFaiErrorSnack(
showChainErrorSnack(
context,
'doctor.open-path',
r.stderr.isEmpty ? 'open failed' : r.stderr,

View file

@ -49,7 +49,7 @@ class _FederationPageState extends State<FederationPage> {
_refresh();
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(context, 'federation.issue', e,
showChainErrorSnack(context, 'federation.issue', e,
title: l.federationIssueFailed(''));
}
}

View file

@ -132,7 +132,7 @@ class _FlowsPageState extends State<FlowsPage> {
final l = AppLocalizations.of(context);
// Copyable error (was a plain SnackBar) install failures
// carry the real cause (network, signature, store lookup).
showFaiErrorSnack(
showChainErrorSnack(
context,
'flows.install',
e,

View file

@ -756,7 +756,7 @@ class _StorePageState extends State<StorePage> {
_runSearch();
} catch (e) {
if (!mounted) return;
showFaiErrorSnack(
showChainErrorSnack(
context,
'store.provider.add',
e,
@ -2392,7 +2392,7 @@ class _StoreDetailSheetState extends State<_StoreDetailSheet> {
final r = await SystemActions.openInOs(widget.item.repository);
if (!mounted) return;
if (!r.ok) {
showFaiErrorSnack(
showChainErrorSnack(
context,
'store.repository.open',
r.stderr.isEmpty ? 'open failed' : r.stderr,