copy error.c from crowbar