Skip to content

Commit a044a7f

Browse files
committed
fix(cli): the picklist refusal quotes the key as the author wrote it
Claude-Session: https://claude.ai/code/session_01VvcEokUG1tvVxkceYfR5XB Co-authored-by: Claude <noreply@anthropic.com>
1 parent e16359a commit a044a7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/cli/src/utils/picklist-references.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function judgePicklistReferences(parsed: AnyRec): PicklistReferenceJudgem
192192
for (const judged of bodies) {
193193
for (const ref of referencesOf(judged)) {
194194
if (known.has(ref.picklist)) continue;
195-
const names = `names picklist '${ref.picklist}', which no picklist in this stack declares`;
195+
const names = `\`picklist: '${ref.picklist}'\` names no picklist this stack declares`;
196196
if (judged.outside.length === 0) {
197197
// `where` names the field and every printer leads the line with it, so
198198
// the message does not repeat it.
@@ -202,7 +202,7 @@ export function judgePicklistReferences(parsed: AnyRec): PicklistReferenceJudgem
202202
where: ref.where,
203203
path: ref.path,
204204
message:
205-
`\`picklist\` ${names} (${quoteNames(declared)}), so the field has no list to take its ` +
205+
`${names} (${quoteNames(declared)}), so the field has no list to take its ` +
206206
'options from.',
207207
hint:
208208
`Declare the list — \`picklists: [{ name: '${ref.picklist}', label, options }]\` in the stack, or a ` +
@@ -217,7 +217,7 @@ export function judgePicklistReferences(parsed: AnyRec): PicklistReferenceJudgem
217217
path: ref.path,
218218
// The notice printer shows no `where`, so this message names the field.
219219
message:
220-
`${ref.where} ${names} — not judged: the package declaring the field depends on ` +
220+
`${ref.where}: ${names} — not judged: the package declaring the field depends on ` +
221221
`${judged.outside.map((id) => `'${id}'`).join(', ')}, which this stack does not carry, ` +
222222
'and whose picklists this command cannot read.',
223223
hint:

0 commit comments

Comments
 (0)