Skip to content

Commit

Permalink
Merge pull request #244 from Tsht/daid_master
Browse files Browse the repository at this point in the history
Fail KeyValueTreeLoader loading if a line is not parsed correctly
  • Loading branch information
daid authored May 5, 2024
2 parents d623512 + 3e4db62 commit 1f1ef09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/io/keyValueTreeLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ KeyValueTreeLoader::KeyValueTreeLoader(const string& resource_name)
}
result = std::make_shared<KeyValueTree>();

LOG(Info, "Loading tree", resource_name);
LOG(Info, "Loading tree ", resource_name);

while(stream->tell() < stream->getSize())
{
Expand All @@ -44,7 +44,7 @@ KeyValueTreeLoader::KeyValueTreeLoader(const string& resource_name)
}
else if (line == "}")
{
LOG(Error, "Failed to parse key value tree: Node close while no node open.", resource_name);
LOG(Error, "Failed to parse key value tree: Node close while no node open. ", resource_name);
result = nullptr;
return;
}
Expand All @@ -54,8 +54,8 @@ KeyValueTreeLoader::KeyValueTreeLoader(const string& resource_name)
}
else if (line.length() > 0)
{
LOG(Error, "Failed to parse line:", line);
result->root_nodes.clear();
LOG(Error, "Failed to parse line: ", line);
result = nullptr;
return;
}
}
Expand Down

1 comment on commit 1f1ef09

@daid-tinyci
Copy link

@daid-tinyci daid-tinyci bot commented on 1f1ef09 May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TinyCI build failure:

[make -j 2] returned [2]:


[  1%] Built target glad

[ 17%] Built target box2d

[ 27%] Built target lua

[ 34%] Built target basisu-encoder

[ 80%] Built target opus

[ 80%] Generating glDebug.inl

-- GLAD header: /data/tinyci_build/daid/SeriousProton/libs/glad/glad/glad.h

-- GlDebug.inl output: /data/tinyci_build/daid/SeriousProton/_build_native/include/graphics/glDebug.inl

[ 80%] Building CXX object CMakeFiles/seriousproton_objects.dir/src/graphics/freetypefont.cpp.o

[ 80%] Building CXX object CMakeFiles/seriousproton_objects.dir/src/graphics/renderTarget.cpp.o

/data/tinyci_build/daid/SeriousProton/src/graphics/freetypefont.cpp:8:10: fatal error: ft2build.h: No such file or directory

    8 | #include <ft2build.h>

      |          ^~~~~~~~~~~~

compilation terminated.

make[2]: *** [CMakeFiles/seriousproton_objects.dir/build.make:194: CMakeFiles/seriousproton_objects.dir/src/graphics/freetypefont.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

make[1]: *** [CMakeFiles/Makefile2:209: CMakeFiles/seriousproton_objects.dir/all] Error 2

make: *** [Makefile:136: all] Error 2

Please sign in to comment.