mirror of https://github.com/miaowware/qrm2.git
replace error message with common mistakes
This commit is contained in:
parent
62b549619e
commit
ff5de8abc0
|
@ -45,7 +45,11 @@ class TexCog(commands.Cog):
|
|||
if render_result["status"] != "success":
|
||||
embed = cmn.embed_factory(ctx)
|
||||
embed.title = "LaTeX Rendering Failed!"
|
||||
embed.description = render_result.get("description", "Unknown error")
|
||||
embed.description = ("Here are some common reasons:\n"
|
||||
"- Did you forget to use math mode? Surround math expressions with `$`,"
|
||||
" like `$x^3$`.\n"
|
||||
"- Are you using a command from a package? It might not be available.\n"
|
||||
"- Are you including the document headers? We already did that for you.")
|
||||
embed.colour = cmn.colours.bad
|
||||
await ctx.send(embed=embed)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue