Don't call g_error(), which will abort the process and dump core.
Attach a file by drag & drop or click to upload