aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r--bpkg/utility.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx
index ef61870..40ae02c 100644
--- a/bpkg/utility.cxx
+++ b/bpkg/utility.cxx
@@ -117,6 +117,19 @@ namespace bpkg
return d;
}
+ dir_path
+ current_directory ()
+ {
+ try
+ {
+ return dir_path::current_directory ();
+ }
+ catch (const system_error& e)
+ {
+ fail << "unable to obtain current directory: " << e << endf;
+ }
+ }
+
bool stderr_term;
bool