Skip to content

Commit 05779fc

Browse files
committed
Log to stderr
1 parent a9f2597 commit 05779fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/appimagetool.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,14 +575,14 @@ main (int argc, char *argv[])
575575
if (ret != 0 ||error != NULL) {
576576
g_printerr("Failed to run 'git rev-parse --short HEAD': %s\n", error->message);
577577
} else if (exitcode != 0) {
578-
g_print("Failed to run 'git rev-parse --short HEAD': exited with code %d\n", exitcode);
578+
g_printerr("Failed to run 'git rev-parse --short HEAD': exited with code %d\n", exitcode);
579579
} else {
580580
version_env = g_strstrip(out);
581581

582582
if (version_env != NULL) {
583-
g_print("NOTE: Using the output of 'git rev-parse --short HEAD' as the version:\n");
584-
g_print(" %s\n", version_env);
585-
g_print(" Please set the $VERSION environment variable if this is not intended\n");
583+
g_printerr("NOTE: Using the output of 'git rev-parse --short HEAD' as the version:\n");
584+
g_printerr(" %s\n", version_env);
585+
g_printerr(" Please set the $VERSION environment variable if this is not intended\n");
586586
}
587587
}
588588
}

0 commit comments

Comments
 (0)