adds error check for travis