Fixed bug where errors weren't returned as an array