aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-01-25 23:37:10 +0100
committerThomas White <taw@physics.org>2010-01-26 10:48:45 +0100
commitae41da676011401453580029d83407f008ae8745 (patch)
tree13bf947360d48a9c6f8dbfe6e6726a290352f629 /src
parent8c27cf75adef7381dc5517cf3225d00e0bf8f10f (diff)
Slightly more helpful warning message
Diffstat (limited to 'src')
-rw-r--r--src/sfac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sfac.c b/src/sfac.c
index 661a8dfa..5cf94fbf 100644
--- a/src/sfac.c
+++ b/src/sfac.c
@@ -526,7 +526,9 @@ void get_reflections_cached(struct molecule *mol, double en)
mol->reflections = new_list_sfac();
r = fread(mol->reflections, sizeof(double complex), IDIM*IDIM*IDIM, fh);
if ( r < IDIM*IDIM*IDIM ) {
- STATUS("Found cache file (%s), but failed to read.\n", s);
+ STATUS("Found cache file (%s), but failed to read"
+ " (got %lli items, wanted %i).\n",
+ s, (long long)r, IDIM*IDIM*IDIM);
goto calc;
}