Skip to content

Commit

Permalink
fix(cli): broken link in error message (#4452)
Browse files Browse the repository at this point in the history
Fixes #4437

## Checklist

- [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [ ] Description explains motivation and solution
- [ ] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
Chriscbr authored Oct 10, 2023
1 parent ab0803c commit 95a6b30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function annotatePreflightError(error: Error): Error {
error.message,
"hint: Every preflight object needs a unique identifier within its scope. You can assign one as shown:",
'> new cloud.Bucket() as "MyBucket";',
"For more information, see https://www.winglang.io/docs/concepts/resources",
"For more information, see https://www.winglang.io/docs/concepts/application-tree",
);

// eslint-disable-next-line unicorn/error-message
Expand Down
2 changes: 1 addition & 1 deletion apps/wing/src/commands/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function annotatePreflightError(error: Error): Error {
);
newMessage.push('> new cloud.Bucket() as "MyBucket";');
newMessage.push(
"For more information, see https://www.winglang.io/docs/language-guide/language-reference#33-preflight-classes"
"For more information, see https://www.winglang.io/docs/concepts/application-tree"
);

const newError = new Error(newMessage.join("\n\n"), { cause: error });
Expand Down
4 changes: 2 additions & 2 deletions tools/hangar/__snapshots__/error.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ hint: Every preflight object needs a unique identifier within its scope. You can
> new cloud.Bucket() as \\"MyBucket\\";
For more information, see https://www.winglang.io/docs/language-guide/language-reference#33-preflight-classes
For more information, see https://www.winglang.io/docs/concepts/application-tree
../../../examples/tests/error/target/test/repeat_construct_id.test.wsim.[REDACTED].tmp/.wing/preflight.js:10
super(scope, id);
Expand All @@ -83,7 +83,7 @@ hint: Every preflight object needs a unique identifier within its scope. You can
> new cloud.Bucket() as \\"MyBucket\\";
For more information, see https://www.winglang.io/docs/language-guide/language-reference#33-preflight-classes
For more information, see https://www.winglang.io/docs/concepts/application-tree
../../../examples/tests/error/target/test/repeat_construct_id2.test.wsim.[REDACTED].tmp/.wing/preflight.js:13
});
Expand Down

0 comments on commit 95a6b30

Please sign in to comment.