diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-02-22 10:20:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-02-22 10:20:14 +0200 |
commit | 5837974ede1f489fe1e65cb10188f776fb6d1974 (patch) | |
tree | 958b345fd8b3490b358ca0807a1d3c220fc89fab /bpkg/utility.txx | |
parent | 10827e2338f9390383c30c95a2cbbfd733d76088 (diff) |
WIP
Diffstat (limited to 'bpkg/utility.txx')
-rw-r--r-- | bpkg/utility.txx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bpkg/utility.txx b/bpkg/utility.txx index 6113e4e..0f88d53 100644 --- a/bpkg/utility.txx +++ b/bpkg/utility.txx @@ -15,17 +15,10 @@ namespace bpkg verb_b v, A&&... args) { - const char* b (name_b (co)); + process_path pp (search_b (co)); try { - // Use our executable directory as a fallback search since normally the - // entire toolchain is installed into one directory. This way, for - // example, if we installed into /opt/build2 and run bpkg with absolute - // path (and without PATH), then bpkg will be able to find "its" b. - // - process_path pp (process::path_search (b, exec_dir)); - small_vector<const char*, 1> ops; // Map verbosity level. If we are running quiet or at level 1, @@ -98,7 +91,7 @@ namespace bpkg } catch (const process_error& e) { - fail << "unable to execute " << b << ": " << e << endf; + fail << "unable to execute " << pp.recall_string () << ": " << e << endf; } } |