[fix] wrong operators in error conditionals