Skip to content

Commit

Permalink
make error message consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaselv committed Mar 11, 2024
1 parent db1d12a commit de431b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/strings/PowerFxResources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@
<comment>Error Message.</comment>
</data>
<data name="ErrNeedRecordOrTable" xml:space="preserve">
<value>In this context, only record or table values can be used.</value>
<value>Only record or table values can be used in this context.</value>
<comment>Error Message. If a record or table is expected.</comment>
</data>
<data name="ErrIncompatibleRecord" xml:space="preserve">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Table({Value:"everything"},{Value:"42"})
Table({a:1},Error({Kind:ErrorKind.Div0}),{a:3},{a:4})

>> Table([{a:1}], 1/0, {a:3}, [{a:4}])
Errors: Error 0-35: The function 'Table' has some invalid arguments.|Error 16-17: In this context, only record or table values can be used.
Errors: Error 0-35: The function 'Table' has some invalid arguments.|Error 16-17: Only record or table values can be used in this context.

// The second argument is a record, no ambiguity
>> Table([{a:1}], If(1/0<2,{a:2}), {a:3}, [{a:4}])
Expand Down

0 comments on commit de431b3

Please sign in to comment.