error_function.c -- a simple error function that seems to frequently recur