#include <msp/core/algorithm.h>
#include <msp/strings/format.h>
+#include <msp/strings/utils.h>
#include "builtin.h"
#include "compatibility.h"
#include "compiler.h"
string combined;
for(list<Stage>::const_iterator i=module->stages.begin(); i!=module->stages.end(); ++i)
for(vector<Diagnostic>::const_iterator j=i->diagnostics.begin(); j!=i->diagnostics.end(); ++j)
- combined += format("%s:%d: %s\n", module->source_map.get_name(j->source), j->line, j->message);
+ append(combined, "\n", format("%s:%d: %s", module->source_map.get_name(j->source), j->line, j->message));
return combined;
}