From 2d60ad71b6b259106a65d78558900a112e045269 Mon Sep 17 00:00:00 2001 From: Antoine Legrand <2t.antoine@gmail.com> Date: Thu, 27 Jul 2017 18:05:06 +0200 Subject: [PATCH] Print only first line of s3 error message --- util/config/validators/validate_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/config/validators/validate_storage.py b/util/config/validators/validate_storage.py index b240d6094..4860c5d5c 100644 --- a/util/config/validators/validate_storage.py +++ b/util/config/validators/validate_storage.py @@ -26,7 +26,7 @@ class StorageValidator(BaseValidator): # Run setup on the driver if the read/write succeeded. driver.setup() except Exception as ex: - msg = str(ex).strip() + msg = str(ex).strip().split("\n")[0] raise ConfigValidationException('Invalid storage configuration: %s: %s' % (name, msg))