fix: Pass only strings to alert()

This commit is contained in:
ptrcnull 2022-06-20 14:45:59 +02:00
parent 98406f9c50
commit c7f52ff8fe
Signed by: ptrcnull
GPG key ID: 411F7B30801DD9CA
2 changed files with 6 additions and 3 deletions

4
dist/runner.html vendored
View file

@ -127,7 +127,7 @@
retryJob(job.project.id.toString(), job.id) retryJob(job.project.id.toString(), job.id)
} catch (err) { } catch (err) {
console.error(err) console.error(err)
alert(err) alert(err.toString())
} }
}) })
@ -143,7 +143,7 @@
}) })
} catch (err) { } catch (err) {
console.error(err) console.error(err)
alert(err) alert(err.toString())
} }
} }

5
dist/runners.html vendored
View file

@ -48,7 +48,10 @@
table.appendChild(fragment) table.appendChild(fragment)
}) })
}) })
.catch(err => alert(err)) .catch(err => {
console.error(err)
alert(err.toString())
})
</script> </script>
</body> </body>
</html> </html>