Skip to content

Return language in the UnsupportedLanguage error #2

Description

@bramp

Can we update the LanguageError enum so that UnsupportedLanguage also includes the Language that was detected (but not supported). Something like

pub enum LanguageError {
  UnknownLanguage,
  UnsupportedLanguage(String),
}

Happy to send a pull request if you like the idea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions