Browse Source

extract: Handle std::bad_alloc when parsing setup headers

pull/108/head
Daniel Scharrer 7 years ago
parent
commit
a06cdcab8e
  1. 2
      src/cli/extract.cpp

2
src/cli/extract.cpp

@ -913,7 +913,7 @@ void process_file(const fs::path & file, const extract_options & o) {
return;
}
throw;
} catch(const std::ios_base::failure & e) {
} catch(const std::exception & e) {
std::ostringstream oss;
oss << "Stream error while parsing setup headers!\n";
oss << " ├─ detected setup version: " << info.version << '\n';

Loading…
Cancel
Save