diff --git a/packages/cli/src/dirCommand.ts b/packages/cli/src/dirCommand.ts index 907220ea..818dbcd8 100644 --- a/packages/cli/src/dirCommand.ts +++ b/packages/cli/src/dirCommand.ts @@ -146,7 +146,10 @@ export const dirCommand: SvgrCommand = async ( } const dest = path.resolve(outDir as string, path.relative(root, filename)) - return write(filename, dest) + return write(filename, dest).catch(err => { + console.error('Failed to handle file: ', filename) + throw err + }) } await Promise.all(