Skip to content

Add error reason to /tex for invalid LaTeX #206

Closed

Description

@Zabuzard

Right now, when using an invalid LaTeX with /tex, it just says that its invalid. But does not give any further reason. The reason is available with the exception in the code though and should be exposed to the user.

Simply change TeXCommand#onSlashCommand to:

} catch (ParseException e) {
    event.reply("That is an invalid latex. Reason: " + e.getMessage())
        .setEphemeral(true)
        .queue();
    return;
}

adding the Reason: " + e.getMessage().

Activity

  1. added
    enhancement
    enhance command
    on Oct 19, 2021
  2. added this to the Improvement phase 1 milestone on Oct 19, 2021
  3. added and removed
    enhancement
    on Oct 19, 2021
  4. added a commit that references this issue on Oct 19, 2021
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

    enhance commandpriority: normal

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions