Modified 'error' function in 'errors.c' file