make error messages debuggable from page