Skip to content

Update changelog.md to mention new assert with message feature #28156

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

Merged
merged 2 commits into from
Dec 20, 2016

Conversation

mit-mit
Copy link
Member

@mit-mit mit-mit commented Dec 20, 2016

Fixes #28134

@mit-mit
Copy link
Member Author

mit-mit commented Dec 20, 2016

@lrhn @floitschG can you review, please?

* The `assert()` statement has been expanded to support an optional second
`message` argument (SDK issue [27342](https://github.com/dart-lang/sdk/issues/27342)).

The message is display if the assert fails. It can be any object, and it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

displayed.

@floitschG
Copy link
Contributor

LGTM (with one typo).

@mit-mit
Copy link
Member Author

mit-mit commented Dec 20, 2016

Thanks, typo fixed

@floitschG floitschG merged commit c95423b into master Dec 20, 2016

* The `assert()` statement has been expanded to support an optional second
`message` argument (SDK issue [27342](https://github.com/dart-lang/sdk/issues/27342)).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use #24213 as the issue number.

'file:///Users/mit/tmp/tool/bin/main.dart': Failed assertion: line 9 pos 10:
'configFile != null': Tool config missing. Please see https://goo.gl/k8iAi for details.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:33)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:29)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should hide internal methods in the stack trace.

@kevmoo kevmoo deleted the mit-mit-patch-1 branch December 20, 2016 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants