镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Improve error handling #36

Open
Open

Description

@lovasoa

Currently, when parse fails, the user only gets a very uninformative error string as a result.
It would be nice to have a custom error type with useful functionality , such as knowing where the error happened.

Activity

  1. lovasoa commented on Sep 19, 2018

    @lovasoa
    ContributorAuthor
  2. ms705 commented on Oct 3, 2018

    @ms705
    Owner

    Yes! I've been meaning to add support for more descriptive syntax errors for a while, but never got around to it. Independently, I believe nom's story for parse error handling has also changed, however, so it might be best do to this alongside a port to nom v4.

  3. ms705 commented on Oct 3, 2018

    @ms705
    Owner

    (Though I like the changed you linked; we can certainly merge that one right away.)

  4. tomharmon commented on Feb 3, 2020

    @tomharmon
    Contributor

    To add to this issue: Specifically we should use nom's VerboseError to improve error messages. One thing pointed out by @spazm is that in src/create.rs, the creation function, might want to through a nom error with descriptive error message rather than the existing assert!(table.alias.is_none())

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