+ 1

How do I make it so that SoloLearn console does not appear when errors happen?

I know why the error happens, this is just an example, can you make it so that the error doesn't appear in the console without actually fixing the error, I know I can use try{}catch{}, but this also doesn't always prevent the console from appearing, I'm looking for a way to make sure the console never appears: https://code.sololearn.com/W69x01AaV8tL/?ref=app

15th May 2021, 1:38 PM
Karak10
Karak10 - avatar
5 Réponses
+ 1
//ugly way console.error = function() { console.log('test'); } try{ console.log(example); } catch(e) { console.log(); }
15th May 2021, 3:56 PM
minirkk
minirkk - avatar
0
https://www.sololearn.com/Discuss/2767962/?ref=app
15th May 2021, 2:09 PM
minirkk
minirkk - avatar
0
@rkk I tried this and it didn't work, so I decided to ask again but include the code as well, so that someone perhaps can edit it and send me the link
15th May 2021, 3:32 PM
Karak10
Karak10 - avatar
0
rkk the problem is that for audio errors this will not work: https://code.sololearn.com/W7F6d2jfR79S/?ref=app
16th May 2021, 9:49 AM
Karak10
Karak10 - avatar