EllisLab text mark
Advanced Search
     
Insert Error Message into view
Posted: 01 September 2007 02:20 PM   [ Ignore ]
Avatar
Joined: 2007-08-09
239 posts

Hey all,

Is there anyway to insert my error message directly into the view instead of returning a 404 that looks like this:


An Error Was Encountered

Error Number: 1054

Unknown column ‘bodystyle’ in ‘field list’

INSERT INTO vehicles (vin, type, year, price, mileage, transmission, ext_color, int_color, bodystyle, doors, drive_train, engine, wheel_base, load_rating, additional_opts, model_id) VALUES (‘12345667890123456’, ‘New’, ‘1979’, ‘4500’, ‘11600’, ‘’, ‘Blue’, ‘’, 0, ‘4’, ‘AWD’, ‘’, ‘’, ‘’, ‘’, ‘8’)


I’d rather present the user with something like “An error has occured, please contact ....” and then I’d log the incident and review logs to see what actually happened, or I’d just mail the errors to me. Is there something in the user guide which might explain how I can go about doing that?

Thanks. grin

- sf