Fix error creation and warning
commit7c1ea64fe3bb78a8f7289eb28beeb40c62d0f141
authorRicardo Mones <ricardo@mones.org>
Sat, 3 Jun 2023 10:58:22 +0000 (3 12:58 +0200)
committerRicardo Mones <ricardo@mones.org>
Sat, 3 Jun 2023 11:01:30 +0000 (3 13:01 +0200)
treed88d8b98e5499e5bb76fa55a9fb1fc371aa382ff
parent671a081c4aad640f05db26535a2a660ae27643c8
Fix error creation and warning

The error won't be created if the GQuark is 0, only a warning is
emitted and NULL is returned. See:
https://gitlab.gnome.org/GNOME/glib/-/blob/main/glib/gerror.c#L792
src/plugins/fancy/fancy_viewer.c