diff options
author | John Hodge <tpg@mutabah.net> | 2018-06-02 17:53:44 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-06-02 17:53:44 +0800 |
commit | def6cf31fff577776692027706fa3a3aa8bc29b3 (patch) | |
tree | 7cdd287f50fbfe6da60cfb6193310ca61920d0ba /tools/minicargo/build.cpp | |
parent | 44ea3bbb2313f718b220ec24b525bd28248a3d94 (diff) | |
download | mrust-def6cf31fff577776692027706fa3a3aa8bc29b3.tar.gz |
Minicargo - Tweaked error reporting
Diffstat (limited to 'tools/minicargo/build.cpp')
-rw-r--r-- | tools/minicargo/build.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/minicargo/build.cpp b/tools/minicargo/build.cpp index 392e6a64..79a3dcff 100644 --- a/tools/minicargo/build.cpp +++ b/tools/minicargo/build.cpp @@ -1008,8 +1008,8 @@ bool Builder::spawn_process(const char* exe_name, const StringList& args, const if( posix_spawn(&pid, exe_name, &fa, /*attr=*/nullptr, (char* const*)argv.data(), (char* const*)envp.get_vec().data()) != 0 ) { - perror("posix_spawn"); - DEBUG("Unable to spawn compiler"); + ::std::cerr << "Unable to run process '" << exe_name << "' - " << strerror(errno) << ::std::endl; + DEBUG("Unable to spawn executable"); posix_spawn_file_actions_destroy(&fa); return false; } |