From 826ce2e6be63912f7bcbd00464c5c837b25bcd8b Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Thu, 3 Oct 2024 13:46:53 +0200 Subject: [PATCH] Update ErrorMessage.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Théo Galy-Fajou --- frontend/components/ErrorMessage.js | 36 ++++++++++++++++++----------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/frontend/components/ErrorMessage.js b/frontend/components/ErrorMessage.js index 465166f20..e4192fe8d 100644 --- a/frontend/components/ErrorMessage.js +++ b/frontend/components/ErrorMessage.js @@ -474,23 +474,22 @@ const motivational_words = [ // "Don't panic!", "Keep calm, you got this!", + "You got this!", "Silly computer!", "Silly computer!", + "beep boop CRASH 🤖", + "computer bad, you GREAT!", "Probably not your fault!", "Try asking on Julia Discourse!", - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, + "uhmmmmmm??!", + "Maybe time for a break? ☕️", + "Everything is going to be okay!", + "Computers are hard!", + "C'est la vie !", + "¯\\_(ツ)_/¯", + "Oh no! 🙀", + "this suckz 💣", + ...Array(30).fill(null), ] const Motivation = ({ stacktrace }) => { @@ -498,7 +497,16 @@ const Motivation = ({ stacktrace }) => { return motivational_words[Math.floor(Math.random() * motivational_words.length)] }, [stacktrace]) - return msg == null ? null : html`
${msg}
` + return msg == null + ? null + : html`
{ + window.open("https://discourse.julialang.org/", "_blank")?.focus() + }} + > + ${msg} +
` } const get_erred_upstreams = (