Improve Error Handling in Auto POS addere

* Fix bug causing JS to not show error message
* Make error messages describe correct problem
* Stop unknown exceptions being caught