skepller@lemmy.world to Programmer Humor@programming.devEnglish · 15 days agoMy code is self-documentinglemmy.worldimagemessage-square42fedilinkarrow-up125arrow-down11
arrow-up124arrow-down1imageMy code is self-documentinglemmy.worldskepller@lemmy.world to Programmer Humor@programming.devEnglish · 15 days agomessage-square42fedilink
minus-squarekonalt@lemmy.worldlinkfedilinkarrow-up1·edit-213 days ago// 🚨 Log error to console console.error(error);
minus-squareThorry@feddit.orglinkfedilinkarrow-up1·edit-215 days ago// 🤦 You are totally right! Simply logging the 🚨 error to the console isn't proper error handling. 🫣 We now throw an exception instead. throw new ApplicationException(error);
// 🚨 Log error to console console.error(error);// 🤦 You are totally right! Simply logging the 🚨 error to the console isn't proper error handling. 🫣 We now throw an exception instead. throw new ApplicationException(error);