Skip to content

Commit

Permalink
throw an error when the config is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
james2doyle committed Feb 24, 2018
1 parent c2e1434 commit fea66e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/auth.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import firebaseConfig from '~/firebase'
import firebase from 'firebase'

if (!firebaseConfig) {
throw new Error('missing firebase.json config.')
}

export default function ({
store,
redirect
Expand Down

0 comments on commit fea66e1

Please sign in to comment.