My previous error handling commit was bad - this should be better!

commit - would get a "handleError is not defined" error when an error
occurred.