Skip to content

Commit 9b69a3b

Browse files
committed
update messages
1 parent e69c992 commit 9b69a3b

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,19 +973,19 @@ A `<textarea>` can have either a value attribute or (equivalently) child content
973973
### trace_rune_duplicate
974974

975975
```
976-
`$track` must only be used once within the same block statement
976+
`$inspect.trace` must only be used once within the same block statement
977977
```
978978

979979
### trace_rune_invalid_argument
980980

981981
```
982-
`$track` requires a string argument for the trace name
982+
`$inspect.trace` requires a string argument for the trace name
983983
```
984984

985985
### trace_rune_invalid_location
986986

987987
```
988-
`$track` must be placed directly inside a block statement
988+
`$inspect.trace` must be placed directly inside a block statement
989989
```
990990

991991
### transition_conflict

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ Using a `$` prefix to refer to the value of a store is only possible inside `.sv
188188

189189
## trace_rune_duplicate
190190

191-
> `$track` must only be used once within the same block statement
191+
> `$inspect.trace` must only be used once within the same block statement
192192
193193
## trace_rune_invalid_argument
194194

195-
> `$track` requires a string argument for the trace name
195+
> `$inspect.trace` requires a string argument for the trace name
196196
197197
## trace_rune_invalid_location
198198

199-
> `$track` must be placed directly inside a block statement
199+
> `$inspect.trace` must be placed directly inside a block statement
200200
201201
## typescript_invalid_feature
202202

packages/svelte/src/compiler/errors.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,30 +470,30 @@ export function store_invalid_subscription_module(node) {
470470
}
471471

472472
/**
473-
* `$track` must only be used once within the same block statement
473+
* `$inspect.trace` must only be used once within the same block statement
474474
* @param {null | number | NodeLike} node
475475
* @returns {never}
476476
*/
477477
export function trace_rune_duplicate(node) {
478-
e(node, "trace_rune_duplicate", "`$track` must only be used once within the same block statement");
478+
e(node, "trace_rune_duplicate", "`$inspect.trace` must only be used once within the same block statement");
479479
}
480480

481481
/**
482-
* `$track` requires a string argument for the trace name
482+
* `$inspect.trace` requires a string argument for the trace name
483483
* @param {null | number | NodeLike} node
484484
* @returns {never}
485485
*/
486486
export function trace_rune_invalid_argument(node) {
487-
e(node, "trace_rune_invalid_argument", "`$track` requires a string argument for the trace name");
487+
e(node, "trace_rune_invalid_argument", "`$inspect.trace` requires a string argument for the trace name");
488488
}
489489

490490
/**
491-
* `$track` must be placed directly inside a block statement
491+
* `$inspect.trace` must be placed directly inside a block statement
492492
* @param {null | number | NodeLike} node
493493
* @returns {never}
494494
*/
495495
export function trace_rune_invalid_location(node) {
496-
e(node, "trace_rune_invalid_location", "`$track` must be placed directly inside a block statement");
496+
e(node, "trace_rune_invalid_location", "`$inspect.trace` must be placed directly inside a block statement");
497497
}
498498

499499
/**
@@ -1590,4 +1590,4 @@ export function unexpected_reserved_word(node, word) {
15901590
*/
15911591
export function void_element_invalid_content(node) {
15921592
e(node, "void_element_invalid_content", `Void elements cannot have children or closing tags\nhttps://svelte.dev/e/void_element_invalid_content`);
1593-
}
1593+
}

0 commit comments

Comments
 (0)