Skip to content

Commit

Permalink
fix: add path to package.json in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Apr 13, 2024
1 parent c800d3e commit 07b3ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class Engine {
if (transparent) {
return fallbackDescriptor;
} else {
throw new UsageError(`This project is configured to use ${result.spec.name}`);
throw new UsageError(`This project is configured to use ${result.spec.name} because ${result.target} defines a "packageManager" field`);
}
} else {
return result.spec;
Expand Down

0 comments on commit 07b3ba9

Please sign in to comment.