-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In observatory use ArgumentError instead of FallThroughError
Throwing a programmer-constructed FallThroughError is not useful. It prints something like: 'null': Switch case fall-through at line null. And if you can track that down, it's confusing because it's being used to signal things that don't have anything to do with falling through from one switch case to the next one. Usually, there turns out to be no matching case in the first place so there's no possible way that anything fell through to the next case. Fixes #28189 Change-Id: I68d8aaf22c95163f87a159928f924c25c19f094e Reviewed-on: https://dart-review.googlesource.com/62522 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Kevin Millikin <kmillikin@google.com>
- Loading branch information
Kevin Millikin
authored and
commit-bot@chromium.org
committed
Jun 28, 2018
1 parent
bd9aa51
commit 29924c4
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters