Improved cryptic error message
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 8 Mar 2012 22:04:35 +0000 (09:04 +1100)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 8 Mar 2012 22:04:35 +0000 (09:04 +1100)
Change-Id: Idd3f7a9ce36e155c61009b16da9a1f2b1a98e93e

src/tools/hxprops.c

index 8bd04d4062f2b6f81f26dd9777e3aab24f87a383..5291618b9fe61282ea99dc962c85e9f42407bdce 100644 (file)
@@ -385,7 +385,7 @@ t_bb *mkbbind(const char *fn,int *nres,int *nbb,int res0,
   fprintf(stderr,"There are %d complete backbone residues (from %d to %d)\n",
          rnr,bb[i0].resno,bb[i1].resno);
   if (rnr==0)
-    gmx_fatal(FARGS,"rnr==0");
+    gmx_fatal(FARGS,"Zero complete backbone residues were found, cannot proceed");
   for(i=0; (i<rnr); i++,i0++)
     bb[i]=bb[i0];