hydra-eval-jobs: Filter ANSI escape sequences

This commit is contained in:
Eelco Dolstra 2018-08-01 17:06:32 +02:00
parent 1898e31ed8
commit dca6c5a983
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -201,7 +201,7 @@ static void findJobs(EvalState & state, JSONObject & top,
} catch (EvalError & e) {
if (comma) { std::cout << ","; comma = false; }
auto res = top.object(attrPath);
res.attr("error", e.msg());
res.attr("error", filterANSIEscapes(e.msg(), true));
}
}