Fixed error reporting to so errors actually show up