Browse Source

- more tolerant if trailing slash missed

master
Andreas Romeyke 2 months ago
parent
commit
349b0f51e9
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/examples/validate_a_bag.cpp

+ 5
- 0
src/examples/validate_a_bag.cpp View File

@@ -27,6 +27,11 @@ int main(int argc, const char *argv[]) {
Bag bag( dir );
bool is_valid = bag.validate();
cout << "The bag '"<< dir <<"' is " << (is_valid ? "valid" : "invalid") << endl;
if (!is_valid) {
stringstream log;
bag.get_logstream( log );
cout << log.str() << endl;
}
return 0;
}
// vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab


Loading…
Cancel
Save