update result doc and little modify to error handler