fixed error messages for syscalls