Report error instead of SEGV when an error is occurred in function