I'm calling system to copy some files, which only return true or false and sets $? to the errno number. So, unless there is a better way, I need the mapping. <nobu.nokada / softhome.net> wrote in message news:200204260154.g3Q1s3J05490 / sharui.nakada.kanuma.tochigi.jp... > Hi, > > At Fri, 26 Apr 2002 06:56:47 +0900, > Rod Schmidt wrote: > > Is there a way to get an error message for an errno in Ruby. I'm looking for > > similiar functionality as strerror() in C? > > Raised exceptions from syscalls have message, isn't it good > enough? > > $ ruby -e 'open("nothing") rescue puts $!.message' > No such file or directory - "nothing" > > Or you need the whole mapping from errno to messages? > > -- > Nobu Nakada >