| 79 | |
| 80 | template <typename T> |
| 81 | static Future<T> failure( |
| 82 | const string& cmd, |
| 83 | int status, |
| 84 | const string& err) |
| 85 | { |
| 86 | return Failure( |
| 87 | "Failed to run '" + cmd + "': " + WSTRINGIFY(status) + |
| 88 | "; stderr='" + err + "'"); |
| 89 | } |
| 90 | |
| 91 | |
| 92 | static Future<Nothing> _checkError(const string& cmd, const Subprocess& s) |