Cread error reporting function and fix or operator