aboutsummaryrefslogtreecommitdiff
path: root/bdep
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-13 14:53:44 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-26 17:14:22 +0300
commit0b61b4207fb3c00860f8ef4d4b86e31cdc90c09d (patch)
tree36f9c84bf8ae5d580a563c9e74001b6ddf384bc4 /bdep
parent865f01bbf9e1e3b2fd2aae3c6cd4d4002adc928d (diff)
Adapt to builtins support added to command run API
Diffstat (limited to 'bdep')
-rw-r--r--bdep/new.cli11
-rw-r--r--bdep/new.cxx4
2 files changed, 9 insertions, 6 deletions
diff --git a/bdep/new.cli b/bdep/new.cli
index dbb9a96..4d7c9a9 100644
--- a/bdep/new.cli
+++ b/bdep/new.cli
@@ -490,11 +490,12 @@ namespace bdep
source directory.
The <command> value is interpreted as a whitespace-separated,
- potentially quoted command line consisting of the program optionally
- followed by arguments and redirects. Specifically, a single level of
- quotes (either single or double) is removed and whitespaces are not
- treated as separators inside such quoted fragments. Currently only the
- \cb{stdout} redirect to a file is supported. For example:
+ potentially quoted command line consisting of a program or a portable
+ \l{testscript#builtins builtin} optionally followed by arguments and
+ redirects. Specifically, a single level of quotes (either single or
+ double) is removed and whitespaces are not treated as separators inside
+ such quoted fragments. Currently only the \cb{stdout} redirect to a
+ file is supported. For example:
\
$ bdep new --post-hook \"echo '.idea/ # IDE' >>.gitignore\" hello
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 681cc18..23bc4bc 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -661,7 +661,9 @@ namespace bdep
fail << "unable to execute " << what << " hook '" << cmd << "': "
<< e;
}
- catch (const process_error& e)
+ // Also handles process_error exception (derived from system_error).
+ //
+ catch (const system_error& e)
{
fail << "unable to execute " << what << " hook '" << cmd << "': "
<< e;