Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 27186de

Browse files
committed
refactor(logging): better error message for missing required files
better error message for missing required files
1 parent 3a9c692 commit 27186de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ function validateRequiredFilesExist() {
4848
readFileAsync(process.env.IONIC_TS_CONFIG)
4949
]).catch((error) => {
5050
if (error.code === 'ENOENT' && error.path === process.env.IONIC_APP_ENTRY_POINT) {
51-
error = new BuildError(`"main.dev.ts" and "main.prod.ts" have been deprecated. Please create a new file "main.ts" containing the content of "main.dev.ts", and then delete the deprecated files.
51+
error = new BuildError(`${error.path} was not found. The "main.dev.ts" and "main.prod.ts" files have been deprecated. Please create a new file "main.ts" containing the content of "main.dev.ts", and then delete the deprecated files.
5252
For more information, please see the default Ionic project main.ts file here:
5353
https://github.com/driftyco/ionic2-app-base/tree/master/src/app/main.ts`);
5454
error.isFatal = true;
5555
throw error;
5656
}
5757
if (error.code === 'ENOENT' && error.path === process.env.IONIC_TS_CONFIG) {
58-
error = new BuildError(['You are missing a "tsconfig.json" file. This file is required.',
58+
error = new BuildError([`${error.path} was not found. The "tsconfig.json" file is missing. This file is required.`,
5959
'For more information please see the default Ionic project tsconfig.json file here:',
6060
'https://github.com/driftyco/ionic2-app-base/blob/master/tsconfig.json'].join('\n'));
6161
error.isFatal = true;

0 commit comments

Comments
 (0)