diff options
Diffstat (limited to 'bdep')
-rw-r--r-- | bdep/new.cli | 11 | ||||
-rw-r--r-- | bdep/new.cxx | 4 |
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; |