summaryrefslogtreecommitdiff
path: root/src/main/ActiveThorns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/ActiveThorns.c')
-rw-r--r--src/main/ActiveThorns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/ActiveThorns.c b/src/main/ActiveThorns.c
index 54b1f455..94b62cc3 100644
--- a/src/main/ActiveThorns.c
+++ b/src/main/ActiveThorns.c
@@ -977,7 +977,8 @@ int CCTKi_ActivateThorns(const char *activethornlist)
new_thorn = this_thorn->activates_thorns[i];
if (! CCTK_IsThornActive(new_thorn))
{
- switch (Util_StringListAdd(new_thorns, new_thorn))
+ const int ierr = Util_StringListAdd(new_thorns, new_thorn);
+ switch (ierr)
{
case 0:
/* Thorn already scheduled for activation */
@@ -988,7 +989,8 @@ int CCTKi_ActivateThorns(const char *activethornlist)
did_add_thorns = 1;
break;
default:
- CCTK_Warn(0, __LINE__, __FILE__, "Cactus", "Internal error");
+ CCTK_VError(__LINE__, __FILE__, "Cactus", "Internal error: %d",
+ ierr);
}
}
}