add write_err_web_ret method
Merge branch 'master' of https://github.com/tomacloud/tank