neon-mmd@programming.dev to Rust@programming.devEnglish · edit-21 year agoBlog Post: How To Wrap Your Errors With Enums When Using Error-Stackbetterprogramming.pubexternal-linkmessage-square4fedilinkarrow-up117arrow-down10
arrow-up117arrow-down1external-linkBlog Post: How To Wrap Your Errors With Enums When Using Error-Stackbetterprogramming.pubneon-mmd@programming.dev to Rust@programming.devEnglish · edit-21 year agomessage-square4fedilink
minus-squaresnaggen@programming.devlinkfedilinkEnglisharrow-up1·1 year agoError stack will give will print the full stack of errors and their corresponding line in the code. Much like a backtrace, but for errors.
minus-squareSorteKanin@feddit.dklinkfedilinkEnglisharrow-up2·1 year agoDoesn’t anyhow also give a stack of errors? Although not with lines, that does sound useful.
minus-squaresnaggen@programming.devlinkfedilinkEnglisharrow-up1·1 year agoYou are right, it does. But as you say, it seems more limited in that aspect than error-stack from a first glance.
Error stack will give will print the full stack of errors and their corresponding line in the code. Much like a backtrace, but for errors.
Doesn’t anyhow also give a stack of errors? Although not with lines, that does sound useful.
You are right, it does. But as you say, it seems more limited in that aspect than error-stack from a first glance.