From 80f36b81a6a9f2c246b675c1d6d074b30b7425e8 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 17 Aug 2015 21:10:44 +0800 Subject: [PATCH] FIX: Rate limit message not shown. --- app/assets/javascripts/discourse/models/composer.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6 index d9805f630a9..ae8f324b91f 100644 --- a/app/assets/javascripts/discourse/models/composer.js.es6 +++ b/app/assets/javascripts/discourse/models/composer.js.es6 @@ -504,7 +504,9 @@ const Composer = RestModel.extend({ return post.save(props).then(function(result) { self.clearState(); return result; - }).catch(rollback); + }).catch(function(error) { + throw error; + }); }).catch(rollback); },