diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-07-03 13:51:10 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-07-03 13:51:10 +0000 |
commit | e3521fe53e2499b636f02e765215d1461a22d57f (patch) | |
tree | 77998bc840169b3287dde9b1854a121fdd7341ff /src/main/ActiveThorns.c | |
parent | b209f83c9b33fc2aafcbcc0abc5d0e485c4a6546 (diff) |
Tidying up error messages for missing thorns
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2266 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ActiveThorns.c')
-rw-r--r-- | src/main/ActiveThorns.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/main/ActiveThorns.c b/src/main/ActiveThorns.c index b696c61b..961aa48a 100644 --- a/src/main/ActiveThorns.c +++ b/src/main/ActiveThorns.c @@ -1199,7 +1199,8 @@ int CCTKi_ActivateThorns(const char *thornlist) { if(Util_StrCmpi(imp1,imp2)) { - printf("Error: Required implementation %s not activated\n", imp2); + printf("Error: Required implementation %s not activated.\n", imp2); + printf(" Add a thorn providing this implementation to ActiveThorns parameter.\n"); n_errors++; /* Give some more help */ if (CCTK_IsImplementationCompiled(imp2)) @@ -1230,17 +1231,23 @@ int CCTKi_ActivateThorns(const char *thornlist) while(imp2=Util_StringListNext(required_imps,0)) { printf("Error: required implementation %s not requested\n", imp2); + printf(" Add a thorn providing this implementation to ActiveThorns parameter.\n"); n_errors++; /* Give some more help */ if (CCTK_IsImplementationCompiled(imp2)) { - impthornlist = CCTK_ImpThornList(imp2); - - printf(" This implementation is compiled in\n"); - printf(" Provided by :"); - SKTreeTraverseInorder(impthornlist, + impthornlist = CCTK_ImpThornList(imp2); + + printf(" This implementation is provided by compiled thorns:\n"); + printf(" "); + SKTreeTraverseInorder(impthornlist, JustPrintThornName, NULL); - printf("\n"); + printf("\n"); + } + else + { + printf(" This implementation is not provided by any " + "compiled thorn\n"); } } } |