[olympic/keel] Improve error clarity on pack some common failures
This commit is contained in:
parent
bd2aeee276
commit
8acc6244d5
@ -125,7 +125,11 @@ ox::Error preloadDir(
|
||||
auto const dir = ox::sfmt("{}{}/", path, name);
|
||||
oxReturnError(preloadDir(ts, romFs, pl, dir));
|
||||
} else {
|
||||
oxReturnError(preloadObj(ts, romFs, pl, filePath));
|
||||
auto const err = preloadObj(ts, romFs, pl, filePath);
|
||||
if (err) {
|
||||
oxErrf("\033[31;1;1mCould not preload {}:\n\t{}\n", filePath, toStr(err));
|
||||
return err;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {};
|
||||
|
@ -120,7 +120,11 @@ static ox::Error transformClaw(
|
||||
auto const dir = ox::sfmt("{}{}/", path, name);
|
||||
oxReturnError(transformClaw(ctx, ts, dest, dir));
|
||||
} else {
|
||||
oxReturnError(doTransformations(ctx, ts, dest, filePath));
|
||||
auto const err = doTransformations(ctx, ts, dest, filePath);
|
||||
if (err) {
|
||||
oxErrf("\033[31;1;1mCould not do transformations for {}:\n\t{}\n", filePath, toStr(err));
|
||||
return err;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user