diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-15 18:11:38 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-15 18:11:38 +0200 |
commit | 94e82411f7def5b3f79df43eb0279142cea19f1e (patch) | |
tree | f352530c4689644dcf58c8fcf8a42dc8b0c6fa2c /js/app/services | |
parent | c171e9e381e6d7af9c2dd44ff82f9fef381a2e1a (diff) |
fix unittest breakage errors in firefox and phantomjs, bump build tools
Diffstat (limited to 'js/app/services')
-rw-r--r-- | js/app/services/businesslayer/feedbusinesslayer.coffee | 4 | ||||
-rw-r--r-- | js/app/services/businesslayer/folderbusinesslayer.coffee | 4 | ||||
-rw-r--r-- | js/app/services/existserror.coffee | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/js/app/services/businesslayer/feedbusinesslayer.coffee b/js/app/services/businesslayer/feedbusinesslayer.coffee index 2540cfc5f..d83e38268 100644 --- a/js/app/services/businesslayer/feedbusinesslayer.coffee +++ b/js/app/services/businesslayer/feedbusinesslayer.coffee @@ -131,13 +131,13 @@ FeedModel, NewLoading, _ExistsError, Utils) -> parentId = parseInt(parentId, 10) if angular.isUndefined(url) or url.trim() == '' - throw new Error() + throw new Error('Url must not be empty') url = url.trim() urlHash = hex_md5(url) if @_feedModel.getByUrlHash(urlHash) - throw new _ExistsError() + throw new _ExistsError('Exists already') feed = title: url.replace( diff --git a/js/app/services/businesslayer/folderbusinesslayer.coffee b/js/app/services/businesslayer/folderbusinesslayer.coffee index 969783222..d19796d85 100644 --- a/js/app/services/businesslayer/folderbusinesslayer.coffee +++ b/js/app/services/businesslayer/folderbusinesslayer.coffee @@ -97,12 +97,12 @@ ActiveFeed, ItemModel, ShowAll, _ExistsError, OPMLParser) -> onFailure or= -> if angular.isUndefined(folderName) or folderName.trim() == '' - throw new Error() + throw new Error('Folder name must not be empty') folderName = folderName.trim() if @_folderModel.getByName(folderName) - throw new _ExistsError() + throw new _ExistsError('Exists already') folder = name: folderName diff --git a/js/app/services/existserror.coffee b/js/app/services/existserror.coffee index cb9fab54e..3c282908f 100644 --- a/js/app/services/existserror.coffee +++ b/js/app/services/existserror.coffee @@ -23,10 +23,10 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. angular.module('News').factory '_ExistsError', -> - class ExistsError extends Error + class ExistsError + + constructor: (@message) -> - constructor: (message='') -> - super(message) return ExistsError
\ No newline at end of file |