forked from lix-project/lix
build-remote.pl: UTF-8-decode errors
This commit is contained in:
parent
a6a45bb722
commit
d2d5543625
|
@ -8,6 +8,7 @@ use Nix::Config;
|
||||||
use Nix::SSH;
|
use Nix::SSH;
|
||||||
use Nix::CopyClosure;
|
use Nix::CopyClosure;
|
||||||
use Nix::Store;
|
use Nix::Store;
|
||||||
|
use Encode;
|
||||||
no warnings('once');
|
no warnings('once');
|
||||||
|
|
||||||
STDERR->autoflush(1);
|
STDERR->autoflush(1);
|
||||||
|
@ -264,7 +265,7 @@ writeInt($maxSilentTime, $to);
|
||||||
writeInt($buildTimeout, $to);
|
writeInt($buildTimeout, $to);
|
||||||
my $res = readInt($from);
|
my $res = readInt($from);
|
||||||
if ($res != 0) {
|
if ($res != 0) {
|
||||||
my $msg = readString($from);
|
my $msg = decode("utf-8", readString($from));
|
||||||
print STDERR "error: $msg on ‘$hostName’\n";
|
print STDERR "error: $msg on ‘$hostName’\n";
|
||||||
exit $res;
|
exit $res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue