fix: inverted test for errno in some error msgs