From c7f52ff8fec33728a966d9cb185565b2376e8ec0 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Mon, 20 Jun 2022 14:45:59 +0200 Subject: [PATCH] fix: Pass only strings to alert() --- dist/runner.html | 4 ++-- dist/runners.html | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/runner.html b/dist/runner.html index 43d6188..7d4b0d2 100644 --- a/dist/runner.html +++ b/dist/runner.html @@ -127,7 +127,7 @@ retryJob(job.project.id.toString(), job.id) } catch (err) { console.error(err) - alert(err) + alert(err.toString()) } }) @@ -143,7 +143,7 @@ }) } catch (err) { console.error(err) - alert(err) + alert(err.toString()) } } diff --git a/dist/runners.html b/dist/runners.html index 9c5622c..a74f510 100644 --- a/dist/runners.html +++ b/dist/runners.html @@ -48,7 +48,10 @@ table.appendChild(fragment) }) }) - .catch(err => alert(err)) + .catch(err => { + console.error(err) + alert(err.toString()) + }) \ No newline at end of file