Skip to content

Commit 1ceabc1

Browse files
committed
Add "or method" to the "Did you mean ..." error message
1 parent d592481 commit 1ceabc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ const publicApiProxy = new Proxy(publicApi, {
645645
}
646646
}
647647

648-
const error = new Error(`${chalk.red(`Encore.${prop}`)} is not a recognized property, did you mean ${chalk.green(`Encore.${similarProperty}`)}?`);
648+
const error = new Error(`${chalk.red(`Encore.${prop}`)} is not a recognized property or method, did you mean ${chalk.green(`Encore.${similarProperty}`)}?`);
649649
console.log(new PrettyError().render(error));
650650
process.exit(1); // eslint-disable-line
651651
}

0 commit comments

Comments
 (0)