Fix bug where stdout was checked instead of stderr

This commit is contained in:
daurnimator 2020-02-07 16:12:16 +11:00 committed by Andrew Kelley
parent 8f627593eb
commit d136c795af
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -185,7 +185,7 @@ pub const RunStep = struct {
};
var stderr: []const u8 = undefined;
switch (self.stdout_behavior) {
switch (self.stderr_action) {
.expect_exact, .expect_matches => {
var stderr_file_in_stream = child.stderr.?.inStream();
stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable;