Update error message after resolving unbound variables