We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73c4f14 commit ebdbd04Copy full SHA for ebdbd04
1 file changed
commandLine/src/projects/VSCodeProject.cpp
@@ -37,11 +37,17 @@ struct fileJson {
37
}
38
39
void load() {
40
+ if (!fs::exists(fileName)) {
41
+ ofLogError(VSCodeProject::LOG_NAME) << "JSON file not found " << fileName;
42
+ return;
43
+ }
44
+
45
std::ifstream ifs(fileName);
46
try {
47
data = json::parse(ifs);
48
} catch (json::parse_error& ex) {
49
ofLogError(VSCodeProject::LOG_NAME) << "JSON parse error at byte" << ex.byte;
50
51
52
53
0 commit comments