Merge pull request #152 from cppforlife/err_check_before_subc

check err before using subc