From b8ea7f6aba2e675b85826b0bee1f21ddd7b866a5 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 24 May 2013 11:00:14 -0700 Subject: feat(ngError): add error message compression and better error messages - add toThrowNg matcher --- src/ng/cacheFactory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/cacheFactory.js') diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index ce690ebf..1c23e063 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -28,7 +28,7 @@ function $CacheFactoryProvider() { function cacheFactory(cacheId, options) { if (cacheId in caches) { - throw Error('cacheId ' + cacheId + ' taken'); + throw ngError(10, "CacheId '{0}' is already taken!", cacheId); } var size = 0, -- cgit v1.2.3