Welcome Guest, Not a member yet? Register   Sign In
Insert Error Message into view
#1

[eluser]stevefink[/eluser]
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. :-)

- sf




Theme © iAndrew 2016 - Forum software by © MyBB