diff --git a/firebase-database-behavior.html b/firebase-database-behavior.html index 60c38af..984854d 100644 --- a/firebase-database-behavior.html +++ b/firebase-database-behavior.html @@ -80,7 +80,13 @@ if (key) { value.$key = null; } - var result = this.db.ref(path).set(leaf ? value.$val : value); + var result = this.db.ref(path).set(leaf ? value.$val : value) + .catch(e => { + e.key = key || value.$key; + e.path = path; + e.value = value; + this.__onError(e); + }); if (key) { value.$key = key; }