mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	Merge branch 'glib-compile-resources-print-error-message' into 'main'
glib-compile-resources: print error message when the temp file cannot be created See merge request GNOME/glib!4855
This commit is contained in:
		| @@ -1070,10 +1070,11 @@ main (int argc, char **argv) | |||||||
|     { |     { | ||||||
|       if (generate_source) |       if (generate_source) | ||||||
| 	{ | 	{ | ||||||
| 	  int fd = g_file_open_tmp (NULL, &binary_target, NULL); | 	  int fd = g_file_open_tmp (NULL, &binary_target, &error); | ||||||
| 	  if (fd == -1) | 	  if (fd == -1) | ||||||
| 	    { | 	    { | ||||||
| 	      g_printerr ("Can't open temp file\n"); | 	      g_printerr ("Can't open temp file: %s\n", error->message); | ||||||
|  |               g_error_free (error); | ||||||
| 	      g_free (c_name); | 	      g_free (c_name); | ||||||
|               g_hash_table_unref (files); |               g_hash_table_unref (files); | ||||||
| 	      return 1; | 	      return 1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user