From 6c3f0fd431c8e2dfa79a421c878bb5d15a42c1d5 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Mon, 19 Sep 2016 17:34:11 +0200
Subject: [PATCH] Fix error message displaying

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 settings/js/personal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/settings/js/personal.js b/settings/js/personal.js
index aef67f719c0..c2cb437bd13 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -65,7 +65,7 @@ function changeEmailAddress () {
 		//              for failure the first parameter is the result object
 		OC.msg.finishedSaving('#lostpassword .msg', result);
 	}).fail(function(result){
-		OC.msg.finishedSaving('#lostpassword .msg', result.responseJSON);
+		OC.msg.finishedError('#lostpassword .msg', result.responseJSON.message);
 	});
 }
 
-- 
GitLab