diff options
author | John Hodge <tpg@mutabah.net> | 2018-02-18 12:50:30 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-02-18 12:50:30 +0800 |
commit | 732b1c28b9b23f2c749b3f15905c57754b9b45bf (patch) | |
tree | b8c5abdbeb2854f6c458551eadfe69bb2a3e3960 /tools | |
parent | 3d430f19ea0fb4082e0a3d17a73fd445af74d843 (diff) | |
download | mrust-732b1c28b9b23f2c749b3f15905c57754b9b45bf.tar.gz |
Minicargo - Don't abort on unrecognised manifest keys
Diffstat (limited to 'tools')
-rw-r--r-- | tools/minicargo/manifest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/minicargo/manifest.cpp b/tools/minicargo/manifest.cpp index 72e9ad37..d3cd9b3e 100644 --- a/tools/minicargo/manifest.cpp +++ b/tools/minicargo/manifest.cpp @@ -122,7 +122,7 @@ PackageManifest PackageManifest::load_from_toml(const ::std::string& path) else { // Unknown value in `package` - throw ::std::runtime_error("Unknown key `" + key + "` in [package]"); + ::std::cerr << "WARNING: Unknown key `" + key + "` in [package]" << ::std::endl; } } else if( section == "lib" ) @@ -447,7 +447,8 @@ PackageManifest PackageManifest::load_from_toml(const ::std::string& path) else { // Unknown manifest section - TODO("Unknown manifest section " << section); + ::std::cerr << "WARNING: Unknown manifest section `" + section + "`" << ::std::endl; + // TODO: Prevent this from firing multiple times in a row. } } |