Skip to content

Commit

Permalink
fix(@ngtools/webpack): update error message to reference templateUrl
Browse files Browse the repository at this point in the history
Fixes #12693
  • Loading branch information
alan-agius4 authored and kyliau committed Nov 14, 2018
1 parent e45a57a commit 7a643b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ngtools/webpack/src/resource_loader.ts
Expand Up @@ -49,7 +49,9 @@ export class WebpackResourceLoader {

// Simple sanity check.
if (filePath.match(/\.[jt]s$/)) {
return Promise.reject('Cannot use a JavaScript or TypeScript file for styleUrl.');
return Promise.reject(
'Cannot use a JavaScript or TypeScript file for styleUrl or templateUrl.',
);
}

const outputOptions = { filename: filePath };
Expand Down

0 comments on commit 7a643b1

Please sign in to comment.