TeamsModule moved to old repos

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 19:41:19 +01:00
1 parent 2814d4307b
commit 8bf22b6bde
210 files changed

No files matched your search

@@ -0,0 +1,19 @@
import log from './log'
const ErrorResponse = {
'unique constraint': 'Sorry, already taken! Please create a unique '
}
export const checkGraphQLError = error => {
log.debug('checkGraphQLError ', ErrorResponse, error)
const errorString = JSON.stringify(error)
/*
if (error.search(/unique constraint/)) {
const field = error.substring(error.indexOf('=') + 1)
log.debug('unique constraint', field.replace(/ +/g, ''))
}
*/
return errorString
}
export default checkGraphQLError