X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=metadata.cc;h=2ae075190cf49afaed661fd53f66498843bb6a97;hp=8de1a00ac0aaa8e4e22a7897ec76b3bd22ae3cb2;hb=f38dd9bcb0caffd3fc9126b05788c936690e8288;hpb=915e73b3fa1f245541611f26268cdd574798e1e2 diff --git a/metadata.cc b/metadata.cc index 8de1a00..2ae0751 100644 --- a/metadata.cc +++ b/metadata.cc @@ -98,7 +98,7 @@ static string encode_dict(const map& dict) string result; if (dict.find("name") != dict.end()) { - result += "name: " + dict.at("name") + "\n"; + result += "name: " + dict.find("name")->second + "\n"; } for (map::const_iterator i = dict.begin(); @@ -128,7 +128,7 @@ MetadataWriter::MetadataWriter(TarSegmentStore *store, if (statcache_out == NULL) { fprintf(stderr, "Error opening statcache %s: %m\n", statcache_tmp_path.c_str()); - throw IOException("Error opening statcache"); + fatal("Error opening statcache"); } old_metadata_eof = false;