Ignore:
Timestamp:
Feb 4, 2013, 2:10:14 PM (9 years ago)
Author:
Peter
Message:

fixes #751. throw if OutBamFile::write fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/bam_iterator.cc

    r2943 r2983  
    11// $Id$
    22//
    3 // Copyright (C) 2012 Peter Johansson
     3// Copyright (C) 2012, 2013 Peter Johansson
    44//
    55// This program is free software; you can redistribute it and/or modify
     
    4747  return EXIT_SKIP;
    4848#endif
    49   test1(suite);
     49  try {
     50    test1(suite);
     51  }
     52  catch (std::runtime_error& e) {
     53    suite.add(false);
     54    suite.err() << "error: what: " << e.what() << "\n";
     55  }
    5056  return suite.return_value();
    5157}
Note: See TracChangeset for help on using the changeset viewer.