add error debugging info to edit page