easier error messages for pictures

This commit is contained in:
Ploum 2023-12-16 23:50:15 +01:00
parent 1bbd317c1d
commit ba5f6ecb91
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def inline_image(img_file,width):
try:
ansi_img = run(cmd, parameter=img_file)
except Exception as err:
ansi_img = "***image failed : %s***\n" %err
ansi_img = "***IMAGE ERROR: wrong or undisplayable picture***\n" %err
return ansi_img
def terminal_image(img_file):