Skip to content

Commit 12332e2

Browse files
committed
[quest][html] Use reason instead of 'expected foo, got bar' is provided
1 parent fbca0aa commit 12332e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/quest.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ <h1><img src="img/mock1.png">Simple Kombinator Interpreter Quests<img src="img/m
263263
append(line, 'span', {content: `${item.start} &rarr; ${item.found} in ${item.steps} steps`});
264264
if (!item.pass) {
265265
append(line, 'br');
266-
append(line, 'span', {content: '&nbsp;&nbsp;expected '+item.expected});
266+
append(line, 'span', {content: '&nbsp;&nbsp;' + (item.reason ?? 'expected '+item.expected)});
267267
}
268268
}
269269
}

0 commit comments

Comments
 (0)