Skip to content

Commit 464b22b

Browse files
committed
tweak message
1 parent 8461ca9 commit 464b22b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

documentation/docs/98-reference/.generated/compile-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ A `<textarea>` can have either a value attribute or (equivalently) child content
979979
### trace_rune_invalid_location
980980

981981
```
982-
`$inspect.trace` must be placed directly inside a function and be the first statement
982+
`$inspect.trace(...)` must be the first statement of a function body
983983
```
984984

985985
### transition_conflict

packages/svelte/messages/compile-errors/script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Using a `$` prefix to refer to the value of a store is only possible inside `.sv
192192
193193
## trace_rune_invalid_location
194194

195-
> `$inspect.trace` must be placed directly inside a function and be the first statement
195+
> `$inspect.trace(...)` must be the first statement of a function body
196196
197197
## typescript_invalid_feature
198198

packages/svelte/src/compiler/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,12 @@ export function trace_rune_invalid_argument(node) {
479479
}
480480

481481
/**
482-
* `$inspect.trace` must be placed directly inside a function and be the first statement
482+
* `$inspect.trace(...)` must be the first statement of a function body
483483
* @param {null | number | NodeLike} node
484484
* @returns {never}
485485
*/
486486
export function trace_rune_invalid_location(node) {
487-
e(node, "trace_rune_invalid_location", `\`$inspect.trace\` must be placed directly inside a function and be the first statement\nhttps://svelte.dev/e/trace_rune_invalid_location`);
487+
e(node, "trace_rune_invalid_location", `\`$inspect.trace(...)\` must be the first statement of a function body\nhttps://svelte.dev/e/trace_rune_invalid_location`);
488488
}
489489

490490
/**

0 commit comments

Comments
 (0)