aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-remote.pl.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-remote.pl.in b/scripts/build-remote.pl.in
index f74ba7886..5f0c72b66 100755
--- a/scripts/build-remote.pl.in
+++ b/scripts/build-remote.pl.in
@@ -8,6 +8,7 @@ use Nix::Config;
use Nix::SSH;
use Nix::CopyClosure;
use Nix::Store;
+use Encode;
no warnings('once');
STDERR->autoflush(1);
@@ -264,7 +265,7 @@ writeInt($maxSilentTime, $to);
writeInt($buildTimeout, $to);
my $res = readInt($from);
if ($res != 0) {
- my $msg = readString($from);
+ my $msg = decode("utf-8", readString($from));
print STDERR "error: $msg on ‘$hostName’\n";
exit $res;
}