Skip to content

Completing with an error example not working #7214

@ganeshvarbalaji

Description

@ganeshvarbalaji

Page URL

https://dart.dev/libraries/async/async-await

Page source

https://github.com/dart-lang/site-www/blob/main/src/content/libraries/async/async-await.md

Describe the problem

The section titled "Example: Completing with an error" is meant to show an example where the code exits after printing an error which is invoked by "throw Exception('Logout failed: user ID is invalid')". When the embedded dartpad is run the output doesn't print that error. I believe that the example was meant to teach something but it doesn't work.

Expected fix

No response

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions