Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function formatFilePath(filePath: string) {
return `${report.format.bold(`file:`)} ${report.format.blue(filePath)}`
}
reportError(message) {
const queryErrorMessage = `${report.format.red(`GraphQL Error`)} ${message}`
report.panicOnBuild(queryErrorMessage)
if (process.env.gatsby_executing_command === `develop`) {
websocketManager.emitError(overlayErrorID, queryErrorMessage)
lastRunHadErrors = true
}
}
reportError(message) {
const queryErrorMessage = `${report.format.red(`GraphQL Error`)} ${message}`
report.panicOnBuild(queryErrorMessage)
if (process.env.gatsby_executing_command === `develop`) {
websocketManager.emitError(overlayErrorID, queryErrorMessage)
lastRunHadErrors = true
}
}