enable detailed errors to clients in debug build only