Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit cbc00b2

Browse files
committed
Remove custom error.
1 parent 7c3fae6 commit cbc00b2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/firebaseRef.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
"use strict";
22

3-
function FirebaseRefNotProvidedError() {
4-
this.name = 'FirebaseRefNotProvidedError';
5-
this.message = 'No Firebase URL registered. Use firebaseRefProvider.registerUrl() in the config phase to set up a root reference.';
6-
this.stack = (new Error()).stack;
7-
}
8-
FirebaseRefNotProvidedError.prototype = Object.create(Error.prototype);
9-
FirebaseRefNotProvidedError.prototype.constructor = FirebaseRefNotProvidedError;
10-
113
function FirebaseRef() {
124
this.urls = null;
135
this.registerUrl = function registerUrl(urlOrConfig) {
@@ -25,7 +17,7 @@ function FirebaseRef() {
2517

2618
this.$$checkUrls = function $$checkUrls(urlConfig) {
2719
if (!urlConfig) {
28-
return new FirebaseRefNotProvidedError();
20+
return new Error('No Firebase URL registered. Use firebaseRefProvider.registerUrl() in the config phase to set up a root reference.');
2921
}
3022
};
3123

0 commit comments

Comments
 (0)