IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32015


Ignore:
Timestamp:
Aug 3, 2011, 4:00:44 PM (15 years ago)
Author:
watersc1
Message:

Create more useful error messages and fix a few typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/tools/src/roc.c

    r30607 r32015  
    198198
    199199  target = fopen(targetName, "r");
    200   myAssert (target, "failed to open output");
     200  myAssert (target, "failed to open rocfile");
    201201 
    202202  ALLOCATE (line, char, 1024);
     
    368368  for (i = 0; i < Ninput; i++) {
    369369    input[i] = fopen(inputName[i], "r");
    370     myAssert (input[i], "failed to open file %s in %s\n",inputName[i],targetName);
     370    myAssert (input[i], "failed to open input: %d data file: %s in %s\n",i,inputName[i],targetName);
    371371  }
    372372
     
    381381      Nread = MIN (ROC_BLOCKSIZE, sizes[i] - bytes_read[i]);
    382382      Nbytes = fread (inputData[i], 1, Nread, input[i]);
    383       myAssert (Nbytes == Nread, "failed to read data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName);
     383      myAssert (Nbytes == Nread, "failed to read input: %d data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",i,inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName);
    384384      if (Nread < ROC_BLOCKSIZE) {
    385385        // if we have reached the end of the file, fill in the rest with NULLs
     
    442442  fprintf (stderr, "USAGE: roc [mode]\n");
    443443  fprintf (stderr, " -create (target) (input) (input) (input) ... [options]\n");
    444   fprintf (stderr, " -repair (target) (file #) (output\n");
     444  fprintf (stderr, " -repair (target) (file #) (output)\n");
    445445  fprintf (stderr, " -validate (target)\n");
    446446  fprintf (stderr, " -insert (target) (input)\n");
Note: See TracChangeset for help on using the changeset viewer.