Look up the errno to assert about

Should work on linux too now