[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Use stderr for error messages

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2002-07-02 07:09:12 CEST

While working on issue 774, i noticed that svn sometimes prints
error messages to stdout instead of stderr. I have attached a
patch to fix this.

-- 
Eric Gillespie, Jr. <*> epg@pretzelnet.org
Build a fire for a man, and he'll be warm for a day.  Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett

Index: ./subversion/clients/cmdline/main.c
===================================================================
--- ./subversion/clients/cmdline/main.c
+++ ./subversion/clients/cmdline/main.c Tue Jul 2 00:04:11 2002
@@ -954,7 +954,7 @@
         err = svn_string_from_file (&(opt_state.filedata), opt_arg, pool);
         if (err)
           {
- svn_handle_error (err, stdout, FALSE);
+ svn_handle_error (err, stderr, FALSE);
             svn_pool_destroy (pool);
             return EXIT_FAILURE;
           }
@@ -973,7 +973,7 @@
           err = svn_string_from_file (&buffer, opt_arg, pool);
           if (err)
             {
- svn_handle_error (err, stdout, FALSE);
+ svn_handle_error (err, stderr, FALSE);
               svn_pool_destroy (pool);
               return EXIT_FAILURE;
             }
Index: ./subversion/tests/libsvn_wc/checkout-test.c
===================================================================
--- ./subversion/tests/libsvn_wc/checkout-test.c
+++ ./subversion/tests/libsvn_wc/checkout-test.c Tue Jul 2 00:02:15 2002
@@ -120,7 +120,7 @@
   
   if (err)
     {
- svn_handle_error (err, stdout, 0);
+ svn_handle_error (err, stderr, 0);
       exit (1);
     }
 
Index: ./subversion/tests/svn_tests_main.c
===================================================================
--- ./subversion/tests/svn_tests_main.c
+++ ./subversion/tests/svn_tests_main.c Tue Jul 2 00:02:02 2002
@@ -86,7 +86,7 @@
 
   /* If we got an error, print it out. */
   if (err)
- svn_handle_error (err, stdout, 0);
+ svn_handle_error (err, stderr, 0);
 
   if (msg_only)
     {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 2 07:09:47 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.