Skip to content
Snippets Groups Projects
Commit 82cd4dfa authored by Anael Beutot's avatar Anael Beutot Committed by Sébastien Luttringer
Browse files

Case coherency for error message

parent 3e1d862d
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ class Command_list(TqlCommand):
# compute index width
indexw = max(int(math.log10(len(objs["objects"]))+1), len("index "))
if size_id + indexw >= term_width:
raise cmdError("term width is too small")
raise cmdError("Term width is too small")
# build initial print order
order = [ t for t in objs.get("order", []) if t in tags ]
order.extend(sorted(set(tags.keys()) - set(order)))
......@@ -243,7 +243,7 @@ class Command_list(TqlCommand):
# check if the line width is not too small for this kind of listing,
# 10 seem to be a good minimum value:
if term_width < 10:
raise cmdError("term width is too small")
raise cmdError("Term width is too small")
# remove ignored tags
for tag in self.options.ignore:
if tag in objs["order"]:
......
......@@ -64,7 +64,7 @@ class Command_history(Command):
if len(argv) != 1:
raise cmdBadArgument()
if not self.printer.history:
raise cmdError("not available")
raise cmdError("Not available")
for l in self.printer.history:
self.printer.out(l)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment