silence warning about missing return
add assert to isError
Merge pull request #3079 from rainers/cleanup_iserror

silence warning about missing return and add assert to isError