- Converting all to Typescript

- Installing 1.0.0.beta Quasar Upgrade
   - (Part 1 - Upgrade Components)
This commit is contained in:
Paolo Arena
2019-03-11 19:21:10 +01:00
parent bb3be0ec16
commit 74ecc4f278
46 changed files with 5986 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// import Backend from './backend'
// import Firebase from './firebase'
import Graphql from './graphql'
export default (context, error) => {
/*
if (error.constructor.name === 'FirebaseError') {
Firebase(error)
return
}
if (error.response && error.response.data && error.response.data.backend) {
Backend(error)
return
}*/
if (error[0] && error[0].locations && error[0].validation) {
Graphql(error)
return
}
console.log('Error handler', error)
}