Enhancement to return an array of Error object instead of String.