Changeset 290 for trunk/src


Ignore:
Timestamp:
01/24/05 18:10:18 (20 years ago)
Author:
kil064
Message:

check for file's existence and issue useful message if not there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDReader.cc

    r284 r290  
    3131#include <casa/Exceptions.h>
    3232#include <casa/OS/Path.h>
     33#include <casa/OS/File.h>
    3334#include <atnf/PKSIO/PKSreader.h>
    3435
     
    8889  Path path(inName);
    8990  inName = path.expandedName();
     91//
     92  File file(inName);
     93  if (!file.exists()) {
     94     throw(AipsError("File does not exist"));
     95  }
    9096  filename_ = inName;
    9197//
Note: See TracChangeset for help on using the changeset viewer.