report error messages with simple_wml
This commit is contained in:
parent
5209493bc5
commit
6e07c7deac
2 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,7 @@ char* string_span::duplicate() const
|
|||
}
|
||||
|
||||
error::error(const char* msg)
|
||||
: message(msg)
|
||||
{
|
||||
std::cerr << "ERROR: '" << msg << "'\n";
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ namespace simple_wml {
|
|||
|
||||
struct error {
|
||||
error(const char* msg);
|
||||
std::string message;
|
||||
};
|
||||
|
||||
class string_span
|
||||
|
|
Loading…
Add table
Reference in a new issue