gtk-builder-tool: Error out if screenshooting fails

If we don't produce a texture for whatever reason,
apologize and fail.
This commit is contained in:
Matthias Clasen 2022-04-18 11:16:05 -04:00
parent 6484807719
commit e89365e9e3

View File

@ -256,6 +256,12 @@ screenshot_file (const char *filename,
g_object_unref (builder);
if (texture == NULL)
{
g_printerr ("Failed to take a screenshot\n");
exit (1);
}
save_to = (char *)save_file;
if (save_to == NULL)