From 5e1d4d7f66552e36e783fbd7a0798efa1f175314 Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Tue, 23 May 2017 13:18:16 +0100 Subject: [PATCH] Add errors to docs --- docs/modules/config.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/modules/config.md b/docs/modules/config.md index 4e1e5b95..4c0ad169 100644 --- a/docs/modules/config.md +++ b/docs/modules/config.md @@ -28,7 +28,10 @@ Any values in the defaults but not on Firebase will be untouched. Fetches the remote config data from Firebase, defined in the dashboard. To have fetched data available in the active config, use `activateFetched`. -// TODO Errors +Thrown errors can be one of the following: +* config/failure - Config fetch failed. +* config/no_fetch_yet - Config has never been fetched. +* config/throttled - Config fetch was throttled. ```js firebase.config() @@ -45,7 +48,12 @@ Fetches the remote config data from Firebase, defined in the dashboard. To have Same as `fetch`, however defines (in seconds) how long fetched data is available in the active config. -Default duration is 12 hours (43200 seconds)*[]: +Thrown errors can be one of the following: +* config/failure - Config fetch failed. +* config/no_fetch_yet - Config has never been fetched. +* config/throttled - Config fetch was throttled. + +Default duration is 12 hours (43200 seconds): ```js