Added diagnostic error checking for Travis