aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/cacheFactory.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/cacheFactory.js')
-rw-r--r--src/ng/cacheFactory.js2
1 files changed, 1 insertions, 1 deletions
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,