report error messages with simple_wml

This commit is contained in:
Gunter Labes 2009-02-01 12:41:42 +00:00
parent 5209493bc5
commit 6e07c7deac
2 changed files with 2 additions and 0 deletions

View file

@ -108,6 +108,7 @@ char* string_span::duplicate() const
}
error::error(const char* msg)
: message(msg)
{
std::cerr << "ERROR: '" << msg << "'\n";
}

View file

@ -12,6 +12,7 @@ namespace simple_wml {
struct error {
error(const char* msg);
std::string message;
};
class string_span