Skip to content

Commit

Permalink
fix(@angular-devkit/schematics): use web standard error check for Den…
Browse files Browse the repository at this point in the history
…o support
  • Loading branch information
littledivy committed May 2, 2024
1 parent 4e923fa commit 21dd960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/schematics/src/rules/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function applyContentTemplate<T>(options: T): FileOperator {
content: Buffer.from(templateImpl(decodedContent, {})(options)),
};
} catch (e) {
if ((e as NodeJS.ErrnoException).code === 'ERR_ENCODING_INVALID_ENCODED_DATA') {
if (e instanceof TypeError) {
return entry;
}

Expand Down

0 comments on commit 21dd960

Please sign in to comment.