changed ffi.c to use moo_seterrwithsyserr()

This commit is contained in:
hyunghwan.chung 2018-11-02 05:57:27 +00:00
parent 1a3a681e8d
commit 0dcee7baac

View File

@ -113,7 +113,7 @@ static moo_pfrc_t pf_open (moo_t* moo, moo_mod_t* mod, moo_ooi_t nargs)
dc = dcNewCallVM (4096); /* TODO: right size? */ dc = dcNewCallVM (4096); /* TODO: right size? */
if (!dc) if (!dc)
{ {
moo_seterrnum (moo, moo_syserr_to_errnum(errno)); moo_seterrwithsyserr (moo, 0, errno);
moo->vmprim.dl_close (moo, handle); moo->vmprim.dl_close (moo, handle);
goto softfail; goto softfail;
} }