Skip to content

Commit 0053ba4

Browse files
fix: add more error details
1 parent 0145a5c commit 0053ba4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export async function convert(options: Options) {
127127
await writeFile(parsedPath, template, options);
128128
}
129129
} catch (err) {
130-
console.error(`Failed to process file ${parsedPath}`);
130+
console.error(
131+
`Failed to process file ${filePath} with error ${JSON.stringify(err)}`
132+
);
131133
}
132134
}
133135
}

0 commit comments

Comments
 (0)