@nozbe/watermelondb
Version:
Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast
16 lines (11 loc) • 387 B
JavaScript
// @flow
import diagnosticError from '../diagnosticError'
import logger from '../logger'
// Logs an Error to the console with the given message
//
// Use when a *recoverable* error occurs (so you don't want it to throw)
export default function logError(errorMessage: string): void {
const error: any = diagnosticError(errorMessage)
error.framesToPop += 1
logger.error(error)
}