only call error on linux