File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/utils-firestore/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { isCollectionModule , isDocModule } from '@magnetarjs/utils'
1+ import { isCollectionModule , isDocModule , logWithFlair } from '@magnetarjs/utils'
22import { isFullString } from 'is-what'
33
44export function logError ( errorMessage : string ) : undefined {
5- console . error ( '[ @magnetarjs/plugin-firestore error]\n' , errorMessage )
5+ logWithFlair ( ' @magnetarjs/plugin-firestore' , { error : true } , errorMessage )
66}
77
88export function logErrorAndThrow ( errorMessage : string ) : undefined {
@@ -12,7 +12,7 @@ export function logErrorAndThrow(errorMessage: string): undefined {
1212
1313export function throwIfInvalidFirestorePath (
1414 firestorePath : string ,
15- moduleType ?: 'collection' | 'doc'
15+ moduleType ?: 'collection' | 'doc' ,
1616) : undefined {
1717 let errorMessage = ''
1818 // no firestorePath found
You can’t perform that action at this time.
0 commit comments