Fix error output in browser-display

We still need to totally rewrite that. It's too messy and hard to maintain.