diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-28 18:38:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-28 18:38:50 +0200 |
commit | 259a92ac4e1ac50e4c029f54265b735f6214b49d (patch) | |
tree | 611b17904d5f07ed49c79d35bd630990ef2759cc /brep | |
parent | 04c1324c57692dfd22fab211a7443aaf484f07ce (diff) |
Minor interface and implementation changes
Diffstat (limited to 'brep')
-rw-r--r-- | brep/module.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/brep/module.cxx b/brep/module.cxx index 4ce635a..a803386 100644 --- a/brep/module.cxx +++ b/brep/module.cxx @@ -35,7 +35,7 @@ namespace brep try { - static const char* s[] = {"err", "warn", "info", "trace"}; + static const char* sev_str[] = {"error", "warning", "info", "trace"}; std::ostream& o = rs.content (500, "text/plain;charset=utf-8"); for (const auto& d: e.data) @@ -52,12 +52,17 @@ namespace brep name = d.name; } - o << "[" << s[static_cast<int> (d.sev)] << "] [" - << name << "] " << d.msg << std::endl; + o << name << ": " << sev_str[d.sev] << ": " << d.msg << endl; + + //o << "[" << s[static_cast<int> (d.sev)] << "] [" + // << name << "] " << d.msg << std::endl; } } catch (const sequence_error&) { + // We tried to return the error status/description but some + // content has already been written. Nothing we can do about + // it. } } } |