Skip to content

"Uncaught" exception is thrown when loader fails to load translations #1280

@igodorogea

Description

@igodorogea

When loader throws an exception, the subscription inside TranslateService.use() does not handle it, which leads to an "Uncaught" exception.
This exception leads to flaky unit tests, periodically failing with:

An error was thrown in afterAll
Uncaught [object Object] thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @igodorogea@rbalet

      Issue actions

        "Uncaught" exception is thrown when loader fails to load translations · Issue #1280 · ngx-translate/core