Fix the displayed error message in V2 API

Change-Id: I07c3f1ed79fa507dbe9b76eb8f5964475516754c
This commit is contained in:
Graham Hayes 2015-07-13 17:46:35 +01:00
parent 44b7b51302
commit 4a711a2709
1 changed files with 1 additions and 3 deletions

View File

@ -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