Skip to content

Commit

Permalink
resource: more descriptive error message when resource is not linked
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Aug 13, 2024
1 parent 9226247 commit d6a75c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/js/src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const Resource = new Proxy(raw, {
"It does not look like SST links are active. If this is in local development and you are not starting this process through the multiplexer, wrap your command with `sst dev -- <command>`",
);
}
let msg = `"${prop}" is not linked`;
let msg = `"${prop}" is not linked in your sst.config.ts`;
if (env.AWS_LAMBDA_FUNCTION_NAME) {
msg += ` to ${env.AWS_LAMBDA_FUNCTION_NAME}`;
}
Expand Down

0 comments on commit d6a75c1

Please sign in to comment.