panic: also parse errno in some cases