File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,11 @@ int colvardeps::enable(int feature_id,
213
213
res = enable (f->requires_self [i], dry_run, false , error);
214
214
if (res != COLVARS_OK) {
215
215
if (!dry_run || error) {
216
- cvm::log (" ...required by \" " + f->description + " \" in " + description + " \n " );
216
+ if (toplevel) {
217
+ cvm::log (" Cannot enable \" " + f->description + " \" in " + description + " \n " );
218
+ } else {
219
+ cvm::log (" ...required by \" " + f->description + " \" in " + description + " \n " );
220
+ }
217
221
if (toplevel) {
218
222
cvm::error (" Error: Failed dependency in " + description + " .\n " );
219
223
}
@@ -273,7 +277,11 @@ int colvardeps::enable(int feature_id,
273
277
res = children[j]->enable (g, dry_run || !is_enabled (), false , error);
274
278
if (res != COLVARS_OK) {
275
279
if (!dry_run || error) {
276
- cvm::log (" ...required by \" " + f->description + " \" in " + description + " \n " );
280
+ if (toplevel) {
281
+ cvm::log (" Cannot enable \" " + f->description + " \" in " + description + " \n " );
282
+ } else {
283
+ cvm::log (" ...required by \" " + f->description + " \" in " + description + " \n " );
284
+ }
277
285
if (toplevel) {
278
286
cvm::error (" Error: Failed dependency in " + description + " .\n " );
279
287
}
You can’t perform that action at this time.
0 commit comments