Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide better errors #286

Open
jpnurmi opened this issue May 6, 2022 · 0 comments
Open

Provide better errors #286

jpnurmi opened this issue May 6, 2022 · 0 comments

Comments

@jpnurmi
Copy link
Contributor

jpnurmi commented May 6, 2022

A missing route should throw a FlutterError with a clear description instead of a vague null check operator error:

Screenshot from 2022-02-02 06-51-18

Steps to reproduce:
While testing #656, I changed the initial route but forgot to restore the route itself:

diff --git a/packages/ubuntu_desktop_installer/lib/routes.dart b/packages/ubuntu_desktop_installer/lib/routes.dart
index fcab20a0..7c0a33fc 100644
--- a/packages/ubuntu_desktop_installer/lib/routes.dart
+++ b/packages/ubuntu_desktop_installer/lib/routes.dart
@@ -1,5 +1,5 @@
 abstract class Routes {
-  static const initial = welcome;
+  static const initial = chooseYourLook;
   static const welcome = '/welcome';
   static const tryOrInstall = '/tryorinstall';
   static const turnOffRST = '/turnoffrst';

Imported from #29

@jpnurmi jpnurmi transferred this issue from canonical/wizard_router Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant