[ui] make error messages more helpful