mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
disable traceback lines with non-existing files
This commit is contained in:
parent
5039bdfc63
commit
9ed80ec835
4 changed files with 13 additions and 7 deletions
|
|
@ -185,8 +185,16 @@ assetload::postfunc assetload::layout(
|
|||
return [=](auto assets) {
|
||||
try {
|
||||
auto cfg = std::dynamic_pointer_cast<LayoutCfg>(config);
|
||||
size_t pos = name.find(':');
|
||||
auto prefix = name.substr(0, pos);
|
||||
assets->store(
|
||||
UiDocument::read(cfg->env, name, file, "abs:" + file), name
|
||||
UiDocument::read(
|
||||
cfg->env,
|
||||
name,
|
||||
file,
|
||||
prefix + ":layouts/" + name.substr(pos + 1) + ".xml"
|
||||
),
|
||||
name
|
||||
);
|
||||
} catch (const parsing_error& err) {
|
||||
throw std::runtime_error(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue