]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4910/2: Replace the warning message output method in ly_run_command ()
authorMasamichi Hosoda <trueroad@trueroad.jp>
Thu, 30 Jun 2016 14:15:41 +0000 (23:15 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Thu, 7 Jul 2016 21:45:25 +0000 (06:45 +0900)
This commit replaces
the warning message output method in ly_run_command ()
from fprintf () to warning ().

lily/general-scheme.cc

index 302dbd500d22552a5d070ff4db436e1822f8311b..5f16d93408d66fe7026adeb9072e90800f96cf24 100644 (file)
@@ -620,7 +620,8 @@ ly_run_command (char *argv[], char **standard_output, char **standard_error)
                      standard_output, standard_error,
                      &exit_status, &error))
     {
-      fprintf (stderr, "failed (%d): %s: %s\n", exit_status, argv[0], error->message);
+      warning (_f ("g_spawn_sync failed (%d): %s: %s",
+                   exit_status, argv[0], error->message));
       g_error_free (error);
       if (!exit_status)
         exit_status = -1;