Skip to content

Commit b23e944

Browse files
committed
fixup! fix(material/schematics): gracefully skip broken css files
1 parent 1ffe189 commit b23e944

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/material/schematics/ng-generate/mdc-migration/rules/theming-styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export class ThemingStylesMigration extends Migration<ComponentMigrator[], Schem
4040
try {
4141
return processor.process(styles, {syntax: scss}).toString();
4242
} catch (e) {
43-
console.warn(`Failed to process stylesheet: `, filename);
43+
console.error(e);
44+
console.warn(`Failed to process stylesheet: ${filename} (see error above).`);
4445
return styles;
4546
}
4647
}

src/material/schematics/ng-update/migrations/legacy-components-v15/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export class LegacyComponentsMigration extends Migration<null> {
4040
try {
4141
processor.process(stylesheet.content, {syntax: scss}).sync();
4242
} catch (e) {
43-
console.warn(`Failed to process stylesheet: `, stylesheet.filePath);
43+
console.error(e);
44+
console.warn(`Failed to process stylesheet: ${stylesheet.filePath} (see error above).`);
4445
}
4546
}
4647

0 commit comments

Comments
 (0)