Re: [Vala] How does IOError.from_errno works?




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/03/2015 09:45, Guillaume Poirier-Morency wrote:
I would like to convert errors coming from some bindings to appropriate
IOError using errno codes.

http://valadoc.org/#!api=gio-2.0/GLib.IOError.from_errno

I have tried the following:

        throw IOError.from_errno (this.err.get_error ());
       
But I get the following complication error:

        src/vsgi/fastcgi.c:1170:10: erreur: incompatible types when
        assigning to type ?struct GError *? from type ?GIOErrorEnum?
           _tmp7_ = g_io_error_from_errno (_tmp6_);

Is it a bug?

Thanks in advance!
Broken bindings, see https://bugzilla.gnome.org/show_bug.cgi?id=710085
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU9XY/AAoJEETrFmfSwntrfr8QAJQe1/ot5uTWOUFCvWWnf1+M
ufNaVn2MRU/9495PvPG/nxFgLqDhsA646ITyUUhe/sHIHmULJGchLFmfHzAKcDbH
gnQZOVX9gze3DI8ydZKCcUGsq2aMv9BT1JDNnIWPIsA76du2Rvn/pfOP4wd4Tv/U
tlEn/aD/IzoxEyb3bETgll3/t4gdtPudCfnKBO2pNoKrDpSZyFwEqTCahnQqsQcd
bl23sLDgKYKhll/6Ix9xK1yk6uwMQuz0nSD7ymbJiD63Oyfn43pz5ISU96EdhM0Z
T5Y5OG1IB2Qj99jCuJtsM2gOuLRg+hC2oaTTJnBTz+iFCJ7mRU3QCf01R8tBmQq8
WWnBE6XbpwM6d8b+Tc5+2c6i5PGQ9TZzK4m3JA+dHpQiOXIPRAugjPO/ReyxV9jX
53EOR62LlIGWtdV5vIkOZfAbtra+HHIY8REnDwkhAjujSjS9XUSwevShB4orvr9e
eUotQaDoTjG/qFifh7YnY7/MUPy4ATXyiU+f5GDpQwa5Rvz58oSna7Qq8Auho0jw
dZmJyPFc5whzDr+W7CAIBqrw7HyaT05Zblk9SMHuVf8QHqthPYB3woD/6MQ6m5H8
J/qBGqfdk5/PqkxtRkMSj3OwhCEMiWQVVS9/Juw6BWHuk5VwAtBxA7tN4rwPLQXu
eE/I1RW45YcLMQgcuyds
=oyeQ
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]