diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-07-20 17:17:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-07-20 17:17:09 +0200 |
commit | 0312b5e20763141cb3a8998b4930d03e2d649a7d (patch) | |
tree | 2b3f99352538d23620bfc2b8747c1fe5aad71127 | |
parent | ddafa0f3475fe532a66879b807b0a8f47ecb201e (diff) |
Tweak diagnostics
-rw-r--r-- | bdep/config.cxx | 5 | ||||
-rw-r--r-- | bdep/init.cxx | 5 | ||||
-rw-r--r-- | bdep/new.cxx | 5 | ||||
-rw-r--r-- | tests/config.testscript | 4 | ||||
-rw-r--r-- | tests/init.testscript | 4 | ||||
-rw-r--r-- | tests/new.testscript | 4 |
6 files changed, 15 insertions, 12 deletions
diff --git a/bdep/config.cxx b/bdep/config.cxx index 0960909..58b588c 100644 --- a/bdep/config.cxx +++ b/bdep/config.cxx @@ -741,8 +741,9 @@ namespace bdep } if (!sep && !module) - fail << "no module(s) specified for configuration to be created" << - info << "for example, for C/C++ configuration specify 'cc'" << + fail << "no build system module(s) specified for configuration " + << "to be created" << + info << "for example, for C/C++ configuration, specify 'cc'" << info << "use '--' to create configuration without modules" << info << "for example: bdep config create ... --"; diff --git a/bdep/init.cxx b/bdep/init.cxx index 4599628..9865531 100644 --- a/bdep/init.cxx +++ b/bdep/init.cxx @@ -404,8 +404,9 @@ namespace bdep } if (!sep && !module) - fail << "no module(s) specified for configuration to be created" << - info << "for example, for C/C++ configuration specify 'cc'" << + fail << "no build system module(s) specified for configuration " + << "to be created" << + info << "for example, for C/C++ configuration, specify 'cc'" << info << "use '--' to create configuration without modules" << info << "for example: bdep init -C ... --"; } diff --git a/bdep/new.cxx b/bdep/new.cxx index 8f0c836..f8cf05e 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -638,8 +638,9 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) } if (!sep && !module) - fail << "no module(s) specified for configuration to be created" << - info << "for example, for C/C++ configuration specify 'cc'" << + fail << "no build system module(s) specified for configuration " + << "to be created" << + info << "for example, for C/C++ configuration, specify 'cc'" << info << "use '--' to create configuration without modules" << info << "for example: bdep new -C ... --"; } diff --git a/tests/config.testscript b/tests/config.testscript index 17cfcb1..b1cc325 100644 --- a/tests/config.testscript +++ b/tests/config.testscript @@ -190,8 +190,8 @@ deinit += -d prj $clone_root_prj; $* create @cfg 2>>EOE != 0; - error: no module(s) specified for configuration to be created - info: for example, for C/C++ configuration specify 'cc' + error: no build system module(s) specified for configuration to be created + info: for example, for C/C++ configuration, specify 'cc' info: use '--' to create configuration without modules info: for example: bdep config create ... -- EOE diff --git a/tests/init.testscript b/tests/init.testscript index 6cba76d..43aa1de 100644 --- a/tests/init.testscript +++ b/tests/init.testscript @@ -126,8 +126,8 @@ deinit += -d prj $* -C @cfg 2>>~%EOE% != 0; %initializing in project .+% - error: no module(s) specified for configuration to be created - info: for example, for C/C++ configuration specify 'cc' + error: no build system module(s) specified for configuration to be created + info: for example, for C/C++ configuration, specify 'cc' info: use '--' to create configuration without modules info: for example: bdep init -C ... -- EOE diff --git a/tests/new.testscript b/tests/new.testscript index b3cdae4..f9d1b99 100644 --- a/tests/new.testscript +++ b/tests/new.testscript @@ -1874,8 +1874,8 @@ subdir=hello,no-subdir-source \ : { $* -C -@cfg prj 2>>EOE != 0; - error: no module(s) specified for configuration to be created - info: for example, for C/C++ configuration specify 'cc' + error: no build system module(s) specified for configuration to be created + info: for example, for C/C++ configuration, specify 'cc' info: use '--' to create configuration without modules info: for example: bdep new -C ... -- EOE |