Skip to content

Commit

Permalink
Better warning when XML doc can't be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego-Ivan committed Jul 7, 2022
1 parent 470f33a commit 9da94b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/Statistics.vala
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ namespace Flowtime {

doc = Xml.Parser.parse_file (path);
if (doc == null) {
message ("Doc is null");
warning ("Statistics file was found but cannot be parsed");
setup_new_statistics_file ();

doc = new Xml.Doc (null);
doc = new Xml.Doc ();
doc->set_root_element (root_element);
}

Expand Down

0 comments on commit 9da94b5

Please sign in to comment.