Skip to content

Commit

Permalink
fix bug #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Nov 27, 2021
1 parent 2faa958 commit 6c13a1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/daemon/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ bool Device::loadProfile(string path) {
f.open(path);

if (f.is_open()) {
f>>data;
try {
f>>data;
} catch (nlohmann::detail::parse_error& e) {
imLogE("error while loading profile: %s\n",e.what());
return false;
}
} else {
return false;
}
Expand Down

0 comments on commit 6c13a1b

Please sign in to comment.