use macros for assignments to ci->err
Merge pull request #1639 from h2so5/macro-ci-err

use macros for assignments to ci->err