atticus-sullivan / zfs_backup

GNU General Public License v3.0
1 stars 0 forks source link

Error handling #1

Open atticus-sullivan opened 5 months ago

atticus-sullivan commented 5 months ago

Think about using the trap ERR idiom in bash to handle errors. The downside here is that this makes it hard to print nice error messages (especially localized) since the error handling / trap function won't know where the error is coming from.

Still think about

atticus-sullivan commented 3 months ago

I've been using the trap idiom in bash in another project and it worked out very nicely. So using if in this project might really be worth it.