From dd8a0ec904b99921d1be0021b3ad28d15e51890a Mon Sep 17 00:00:00 2001 From: malik1004x Date: Fri, 13 Mar 2026 16:28:47 +0100 Subject: [PATCH] remove error message on missing .svg (#3074) --- lib/utils/exception_handler.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils/exception_handler.dart b/lib/utils/exception_handler.dart index f7f6de306..9711fdf17 100644 --- a/lib/utils/exception_handler.dart +++ b/lib/utils/exception_handler.dart @@ -117,6 +117,10 @@ class ExceptionHandler { if (await onLedgerError(errorDetails)) return; if (kDebugMode || kProfileMode) { + if(_ignoreError(errorDetails.exception.toString()) || + _ignoreError(errorDetails.stack.toString())) { + printV("(BELOW ERROR IS IGNORED AND WILL NOT TRIGGER POPUP IN PROD)"); + } FlutterError.presentError(errorDetails); errorDetails.toString().split("\n").forEach(printV); return; @@ -282,6 +286,7 @@ class ExceptionHandler { "Invalid SVG", "SVG format error", "SvgPicture", + "Unable to load asset", // Temporary ignored, More context: Flutter secure storage reads the values as null some times // probably when the device was locked and then opened on Cake // this is solved by a restart of the app