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

(cherry picked from commit 41ee8ea)
  • Loading branch information
littledivy authored and clydin committed May 2, 2024
1 parent c6b82f6 commit 1ab1c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/schematics/src/rules/template.ts
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 1ab1c6c

Please sign in to comment.