From 4a711a2709ec5d8a8e04bb0f735fcfaa319cffdf Mon Sep 17 00:00:00 2001 From: Graham Hayes Date: Mon, 13 Jul 2015 17:46:35 +0100 Subject: [PATCH] Fix the displayed error message in V2 API Change-Id: I07c3f1ed79fa507dbe9b76eb8f5964475516754c --- designate/objects/validation_error.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/designate/objects/validation_error.py b/designate/objects/validation_error.py index 0c91a05d6..460c13d31 100644 --- a/designate/objects/validation_error.py +++ b/designate/objects/validation_error.py @@ -11,8 +11,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -import six - from designate.objects import base @@ -33,7 +31,7 @@ class ValidationError(base.DesignateObject): e = cls() e.path = list(getattr(js_error, 'releative_path', js_error.path)) - e.message = six.text_type(js_error) + e.message = js_error.message e.validator = js_error.validator e.validator_value = js_error.validator_value