guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: daemon: Correctly print substituter's stderr.


From: Ludovic Courtès
Subject: 04/04: daemon: Correctly print substituter's stderr.
Date: Wed, 20 May 2015 10:14:11 +0000

civodul pushed a commit to branch master
in repository guix.

commit 4627ea587750886f5de5ac42cc69c89e260ef690
Author: Ludovic Courtès <address@hidden>
Date:   Wed May 20 12:11:34 2015 +0200

    daemon: Correctly print substituter's stderr.
    
    * nix/libstore/local-store.cc (LocalStore::getLineFromSubstituter): 
Reinstate
      commit 9ba0b8d.  Fixes a regression introduced in 2bb0490.
---
 nix/libstore/local-store.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc
index a890ab5..a115f65 100644
--- a/nix/libstore/local-store.cc
+++ b/nix/libstore/local-store.cc
@@ -1165,7 +1165,8 @@ string 
LocalStore::getLineFromSubstituter(RunningSubstituter & run)
             string::size_type p;
             while (((p = err.find('\n')) != string::npos)
                   || ((p = err.find('\r')) != string::npos)) {
-                printMsg(lvlError, run.program + ": " + string(err, 0, p));
+               string thing(err, 0, p + 1);
+               writeToStderr(run.program + ": " + thing);
                 err = string(err, p + 1);
             }
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]