2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:44:56 +00:00

LogVisor report additions; Updated RetroCommon

This commit is contained in:
Jack Andersen
2015-07-05 15:35:08 -10:00
parent cd0b2f0926
commit 14a368553d
13 changed files with 94 additions and 91 deletions

View File

@@ -21,7 +21,7 @@ public:
return;
if (!info.project)
throw HECL::Exception(_S("hecl spec must be ran within a project directory"));
LogModule.report(LogVisor::FatalError, "hecl spec must be ran within a project directory");
const auto& specs = info.project->getDataSpecs();
HECL::SystemString firstArg = info.args[0];
@@ -37,7 +37,7 @@ public:
return;
if (info.args.size() < 2)
throw HECL::Exception(_S("Speclist argument required"));
LogModule.report(LogVisor::FatalError, "Speclist argument required");
for (auto it = info.args.begin()+1;
it != info.args.end();
@@ -54,7 +54,7 @@ public:
}
}
if (!found)
throw HECL::Exception(_S("'") + *it + _S("' is not found in the dataspec registry"));
LogModule.report(LogVisor::FatalError, _S("'%s' is not found in the dataspec registry"), it->c_str());
}
}