From 03c6d8fa16baf975a193fe89ecdb1bfa422f442c Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Wed, 6 Oct 2010 14:56:14 +0200 Subject: [PATCH] Improve the error message for tiered alloc option --- Ganeti/HTools/CLI.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ganeti/HTools/CLI.hs b/Ganeti/HTools/CLI.hs index ab2095f19..336980c50 100644 --- a/Ganeti/HTools/CLI.hs +++ b/Ganeti/HTools/CLI.hs @@ -346,7 +346,8 @@ oTieredSpec = Option "" ["tiered-alloc"] tspec <- case prs of [dsk, ram, cpu] -> return $ RSpec cpu ram dsk - _ -> Bad $ "Invalid specification: " ++ inp + _ -> Bad $ "Invalid specification: " ++ inp ++ + ", expected disk,ram,cpu" return $ opts { optTieredSpec = Just tspec } ) "TSPEC") "enable tiered specs allocation, given as 'disk,ram,cpu'" -- GitLab