Skip to content

Commit

Permalink
osc: improve log output in osc_load_glade_file()
Browse files Browse the repository at this point in the history
Add missing new line and improving it by stating that the failure might
also be from gtk_builder_add_from_file() failing to load the file and
not necessarily by the file not being found.

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed Dec 20, 2023
1 parent 0a05c14 commit bcd122b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,7 @@ int osc_load_glade_file(GtkBuilder *builder, const char *fname)
snprintf(path, sizeof(path), OSC_GLADE_FILE_PATH "%s.glade", fname);
if (gtk_builder_add_from_file(builder, path, NULL))
return 0;
fprintf(stderr, "Could not find '%s.glade' file", fname);
fprintf(stderr, "Could not find/load '%s.glade' file\n", fname);
return -1;
}

Expand Down

0 comments on commit bcd122b

Please sign in to comment.