replace error message with common mistakes

This commit is contained in:
thxo 2021-04-09 13:59:28 -07:00
parent 62b549619e
commit ff5de8abc0
1 changed files with 5 additions and 1 deletions

View File

@ -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