forked from lix-project/hydra
UTF-8 fix
This commit is contained in:
parent
01cd6397cb
commit
d9ab964203
|
@ -2,6 +2,7 @@ package Hydra::Helper::AddBuilds;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use utf8;
|
use utf8;
|
||||||
|
use Encode;
|
||||||
use JSON;
|
use JSON;
|
||||||
use IPC::Run;
|
use IPC::Run;
|
||||||
use Nix::Store;
|
use Nix::Store;
|
||||||
|
@ -345,7 +346,7 @@ sub evalJobs {
|
||||||
|
|
||||||
(my $res, my $jobsJSON, my $stderr) = captureStdoutStderr(10800, @cmd);
|
(my $res, my $jobsJSON, my $stderr) = captureStdoutStderr(10800, @cmd);
|
||||||
die "$evaluator returned " . ($res & 127 ? "signal $res" : "exit code " . ($res >> 8))
|
die "$evaluator returned " . ($res & 127 ? "signal $res" : "exit code " . ($res >> 8))
|
||||||
. ":\n" . ($stderr ? $stderr : "(no output)\n")
|
. ":\n" . ($stderr ? decode("utf-8", $stderr) : "(no output)\n")
|
||||||
if $res;
|
if $res;
|
||||||
|
|
||||||
print STDERR "$stderr";
|
print STDERR "$stderr";
|
||||||
|
|
Loading…
Reference in a new issue