Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 8, 2022
1 parent cb5354f commit 74e286a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/lib/eslint/writeOutputFile.ts
Expand Up @@ -38,8 +38,9 @@ export async function writeOutputFile(outputFile: string, outputData: string) {
await fs.mkdir(path.dirname(filePath), { recursive: true })
await fs.writeFile(filePath, outputData)
Log.info(`The output file has been created: ${filePath}`)
} catch {
} catch (err) {
Log.error(`There was a problem writing the output file: ${filePath}`)
console.error(err)
}
}
}

0 comments on commit 74e286a

Please sign in to comment.