moar error handling

(I'm so sorry to people who care about commit messages)
((And word wrapping))