diff --git a/lib/data/models/settings_model.dart b/lib/data/models/settings_model.dart index 9192c4d7b..f57708d57 100644 --- a/lib/data/models/settings_model.dart +++ b/lib/data/models/settings_model.dart @@ -825,7 +825,7 @@ abstract class SettingsEntity case EntityType.credit: return defaultCreditTerms; default: - print('## Error: getDefaultTerms not defined for $entityType'); + print('## ERROR: getDefaultTerms not defined for $entityType'); return ''; } } @@ -840,7 +840,7 @@ abstract class SettingsEntity case EntityType.credit: return defaultCreditFooter; default: - print('## Error: getDefaultFooter not defined for $entityType'); + print('## ERROR: getDefaultFooter not defined for $entityType'); return ''; } } diff --git a/lib/main.dart b/lib/main.dart index 71a9bc818..da41e15e3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -161,7 +161,7 @@ Future _initialState(bool isTesting) async { if (kIsWeb) { reportErrors = WebUtils.getHtmlValue('report-errors') == '1'; if (reportErrors) { - print('Error reporting is enabled'); + print('## ERROR reporting is enabled'); } } diff --git a/lib/redux/app/app_middleware.dart b/lib/redux/app/app_middleware.dart index bb4704828..57ca4d7b2 100644 --- a/lib/redux/app/app_middleware.dart +++ b/lib/redux/app/app_middleware.dart @@ -268,7 +268,7 @@ Middleware _createLoadState( throw 'Unknown page: ${uiState.currentRoute}'; } } catch (error) { - print('Error (app_middleware - load state): $error'); + print('## ERROR (app_middleware - load state): $error'); if (!kIsWeb && !await NetworkUtils.isOnline()) { showMessageDialog( @@ -304,7 +304,7 @@ Middleware _createLoadState( } AppBuilder.of(action.context).rebuild(); }).catchError((Object error) { - print('Error (app_middleware - refresh): $error'); + print('## ERROR (app_middleware - refresh): $error'); store.dispatch(UserLogout()); }); store.dispatch(RefreshData(completer: completer, clearData: true)); diff --git a/lib/redux/app/app_state.dart b/lib/redux/app/app_state.dart index 38ff7ee62..2e86d7de0 100644 --- a/lib/redux/app/app_state.dart +++ b/lib/redux/app/app_state.dart @@ -341,7 +341,7 @@ abstract class AppState implements Built { case EntityType.settings: return null; default: - print('Error: getEntityMap $type not found'); + print('## ERROR: getEntityMap $type not found'); return null; } } diff --git a/lib/redux/design/design_selectors.dart b/lib/redux/design/design_selectors.dart index 36f85f521..453ad06e1 100644 --- a/lib/redux/design/design_selectors.dart +++ b/lib/redux/design/design_selectors.dart @@ -82,7 +82,7 @@ String getDesignIdForClientByEntity( case EntityType.credit: return settings.defaultCreditDesignId; default: - print('## Error: undefined entity type $entityType in design_selectors'); + print('## ERROR: undefined entity type $entityType in design_selectors'); return settings.defaultInvoiceDesignId; } } diff --git a/lib/redux/expense_category/expense_category_actions.dart b/lib/redux/expense_category/expense_category_actions.dart index 1c7b00d64..cb1b7200e 100644 --- a/lib/redux/expense_category/expense_category_actions.dart +++ b/lib/redux/expense_category/expense_category_actions.dart @@ -333,7 +333,7 @@ void handleExpenseCategoryAction(BuildContext context, ); break; default: - print('Error: unhandled action $action'); + print('## ERROR: unhandled action $action'); break; } } diff --git a/lib/redux/subscription/subscription_actions.dart b/lib/redux/subscription/subscription_actions.dart index 38821663c..74bd9a9ee 100644 --- a/lib/redux/subscription/subscription_actions.dart +++ b/lib/redux/subscription/subscription_actions.dart @@ -319,7 +319,7 @@ void handleSubscriptionAction( ); break; default: - print('Error: unhandled action $action in subscription_actions'); + print('## ERROR: unhandled action $action in subscription_actions'); break; } } diff --git a/lib/redux/task_status/task_status_actions.dart b/lib/redux/task_status/task_status_actions.dart index e73130803..a5603e011 100644 --- a/lib/redux/task_status/task_status_actions.dart +++ b/lib/redux/task_status/task_status_actions.dart @@ -328,7 +328,7 @@ void handleTaskStatusAction( ); break; default: - print('Error: unhandled action $action in task_status_actions'); + print('## ERROR: unhandled action $action in task_status_actions'); break; } } diff --git a/lib/ui/app/entity_dropdown.dart b/lib/ui/app/entity_dropdown.dart index 6fdf56f70..1e0a0be36 100644 --- a/lib/ui/app/entity_dropdown.dart +++ b/lib/ui/app/entity_dropdown.dart @@ -83,7 +83,7 @@ class _EntityDropdownState extends State { _entityMap = widget.entityMap ?? state.getEntityMap(widget.entityType); if (_entityMap == null) { - print('ERROR: ENTITY MAP IS NULL: ${widget.entityType}'); + print('## ERROR: ENTITY MAP IS NULL: ${widget.entityType}'); } else { final entity = _entityMap[widget.entityId]; if (widget.overrideSuggestedLabel != null) { @@ -110,7 +110,7 @@ class _EntityDropdownState extends State { _entityMap = widget.entityMap ?? state.getEntityMap(widget.entityType); if (_entityMap == null) { - print('ERROR: ENTITY MAP IS NULL: ${widget.entityType}'); + print('## ERROR: ENTITY MAP IS NULL: ${widget.entityType}'); } else { final entity = _entityMap[widget.entityId]; if (widget.overrideSuggestedLabel != null) { diff --git a/lib/ui/app/main_screen.dart b/lib/ui/app/main_screen.dart index ee5796bf8..b4304407d 100644 --- a/lib/ui/app/main_screen.dart +++ b/lib/ui/app/main_screen.dart @@ -612,7 +612,7 @@ class EntityScreens extends StatelessWidget { listWidget = ExpenseScreenBuilder(); break; default: - print('Error: list widget not implemented for $entityType'); + print('## ERROR: list widget not implemented for $entityType'); break; } } diff --git a/lib/ui/app/menu_drawer.dart b/lib/ui/app/menu_drawer.dart index cf5237353..872eaf627 100644 --- a/lib/ui/app/menu_drawer.dart +++ b/lib/ui/app/menu_drawer.dart @@ -1170,7 +1170,7 @@ class _ContactUsDialogState extends State { }); Navigator.pop(context); }).catchError((dynamic error) { - print('error: $error'); + print('## ERROR: $error'); setState(() => _isSaving = false); showErrorDialog(context: context, message: '$error'); }); diff --git a/lib/utils/contacts.dart b/lib/utils/contacts.dart index f98332319..912036f24 100644 --- a/lib/utils/contacts.dart +++ b/lib/utils/contacts.dart @@ -11,7 +11,7 @@ Future getDeviceContact() async { openAppSettings(); } } catch (e) { - print('Error: failed to get contact: $e'); + print('## ERROR: failed to get contact: $e'); } return null; diff --git a/lib/utils/i18n.dart b/lib/utils/i18n.dart index d3bb6b76b..611d7f2f2 100644 --- a/lib/utils/i18n.dart +++ b/lib/utils/i18n.dart @@ -62403,7 +62403,7 @@ mixin LocalizationsProvider on LocaleCodeAware { key; if (value.isEmpty) { - print('ERROR: localization key not found - $key'); + print('## ERROR: localization key not found - $key'); final englishValue = _localizedValues['en'][lookupKey] ?? ''; diff --git a/lib/utils/oauth.dart b/lib/utils/oauth.dart index d156d1c8c..cbb829985 100644 --- a/lib/utils/oauth.dart +++ b/lib/utils/oauth.dart @@ -27,7 +27,7 @@ class GoogleOAuth { return true; } else { - print('## Error: sign in failed'); + print('## ERROR: sign in failed'); return false; } } @@ -41,7 +41,7 @@ class GoogleOAuth { return true; } else { - print('## Error: sign up failed'); + print('## ERROR: sign up failed'); return false; } } @@ -62,7 +62,7 @@ class GoogleOAuth { return true; } else { - print('## Error: grant offline failed'); + print('## ERROR: grant offline failed'); errorCallback(); return false; } diff --git a/stubs/redux/stub/stub_actions b/stubs/redux/stub/stub_actions index 0daa5643f..434ed5c92 100644 --- a/stubs/redux/stub/stub_actions +++ b/stubs/redux/stub/stub_actions @@ -326,7 +326,7 @@ void handleStubAction( ); break; default: - print('Error: unhandled action $action in stub_actions'); + print('## ERROR: unhandled action $action in stub_actions'); break; }