Switched from int errors to actual errors.