mirror of
https://github.com/miaowware/qrm2.git
synced 2025-07-03 08:35:15 -04:00
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":
|
if render_result["status"] != "success":
|
||||||
embed = cmn.embed_factory(ctx)
|
embed = cmn.embed_factory(ctx)
|
||||||
embed.title = "LaTeX Rendering Failed!"
|
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
|
embed.colour = cmn.colours.bad
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user