rem: if (open_image(project_list->filename, idx, FALSE) == -1) exit(-1);
add: if (open_image(project_list->filename, idx, FALSE) == -1) { GERB_MESSAGE("could not read %s[%d]", project_list->filename, idx); goto next_layer; }
context: load_project(project_list_t *project_list){    project_list_t *pl_tmp;    GtkStyle       *defstyle, *newstyle;//    GtkWidget      *tmp_widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);         while (project_list) {	if (project_list->layerno == -1) {	    screen.background = alloc_color(project_list->rgb[0], 					    project_list->rgb[1],					    project_list->rgb[2], NULL);	} else {	    int idx =  project_list->layerno;        if (strstr(project_list->filename, ".csv") != NULL) { //           create_search_window(NULL, NULL);//            if (open_pnp(project_list->filename, idx, FALSE) == -1) //                exit(-1);    	} else {            if (open_image(project_list->filename, idx, FALSE) == -1)        		exit(-1);        }    	    /* 	     * Change color from default to from the project list	     */	    free(screen.file[idx]->color);	    screen.file[idx]->color = alloc_color(project_list->rgb[0], 						  project_list->rgb[1],						  project_list->rgb[2], NULL);	    /* 	     * Also change color on layer button	     */	    defstyle = gtk_widget_get_default_style();	    newstyle = gtk_style_copy(defstyle);	    newstyle->bg[GTK_STATE_NORMAL] = *(screen.file[idx]->color);	    newstyle->bg[GTK_STATE_ACTIVE] = *(screen.file[idx]->color);	    newstyle->bg[GTK_STATE_PRELIGHT] = *(screen.file[idx]->color);	    gtk_widget_set_style(screen.layer_button[idx], newstyle);	    screen.file[idx]->inverted = project_list->inverted;	}	pl_tmp = project_list;	project_list = project_list->next;	free(pl_tmp);    }    return;} /* load_project */