aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/PlayerLog.svelte
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-30 14:37:38 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-30 16:23:35 +0100
commit00d31df58d0ea68b11600d98ebf53150a2a0cb88 (patch)
tree523abfde1b55f4a808095a440b88376a63e8d6f3 /web/pw-server/src/lib/components/PlayerLog.svelte
parent67c8a2780c92d247b7343b2107f3d69fc9763797 (diff)
downloadplanetwars.dev-00d31df58d0ea68b11600d98ebf53150a2a0cb88.tar.xz
planetwars.dev-00d31df58d0ea68b11600d98ebf53150a2a0cb88.zip
design new BotMatch view
Diffstat (limited to 'web/pw-server/src/lib/components/PlayerLog.svelte')
-rw-r--r--web/pw-server/src/lib/components/PlayerLog.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/pw-server/src/lib/components/PlayerLog.svelte b/web/pw-server/src/lib/components/PlayerLog.svelte
index 52cae8e..60097d8 100644
--- a/web/pw-server/src/lib/components/PlayerLog.svelte
+++ b/web/pw-server/src/lib/components/PlayerLog.svelte
@@ -3,6 +3,7 @@
export let matchLog: string;
export let playerId: number;
+ export let showStdErr: boolean = true;
let playerLog: PlayerLog;
@@ -66,7 +67,7 @@
<div class="bad-command-error">Parse error: {logTurn.action.error}</div>
</div>
{/if}
- {#if logTurn.stderr.length > 0}
+ {#if showStdErr && logTurn.stderr.length > 0}
<div class="stderr-header">stderr</div>
<div class="stderr-text-box">
{#each logTurn.stderr as stdErrMsg}