Hacker News new | past | comments | ask | show | jobs | submit login

> If you don't want to think about errors and just want to crash, then I feel like there should be a sane way to crash the script with a default error message.

We have `expect` it's like unwrap(), but takes a string. When the program encounters some error, it will exit and print the string.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: