add error handler in guide.md