Changeset 57 for trunk/bin


Ignore:
Timestamp:
Jan 15, 2006, 2:54:40 AM (16 years ago)
Author:
Jari Häkkinen
Message:

Change known program abort to print message and exit nicely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svnstat.cc

    r53 r57  
    2828  Parameter option(argc,argv);
    2929
    30   if (createdir(option.targetdir(),option.force()))
    31     throw runtime_error("Failed to create target directory '" +
    32                         option.targetdir());
     30  if (createdir(option.targetdir(),option.force())) {
     31    std::cerr << "\nFailed to create target directory '" << option.targetdir()
     32              << "'.\n" << std::endl;
     33    exit(-1);
     34  }
    3335
    3436  Directory tree(option.root());
Note: See TracChangeset for help on using the changeset viewer.