From 82cd4dfa6d14b7313cd61763e22a88386e610c11 Mon Sep 17 00:00:00 2001 From: Anael Beutot Date: Mon, 3 Dec 2012 11:23:07 +0100 Subject: [PATCH] Case coherency for error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Luttringer --- cccli/commands/list.py | 4 ++-- cccli/commands/shell.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cccli/commands/list.py b/cccli/commands/list.py index 637a1c1..4125ca9 100644 --- a/cccli/commands/list.py +++ b/cccli/commands/list.py @@ -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"]: diff --git a/cccli/commands/shell.py b/cccli/commands/shell.py index b2f9adb..1e8424f 100644 --- a/cccli/commands/shell.py +++ b/cccli/commands/shell.py @@ -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) -- GitLab