Skip to content

Commit bdf6315

Browse files
committed
Fix infinite loop for jpd generation with no files
1 parent 2aac0c2 commit bdf6315

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deploy/runtime/ui/Marine Wave Resource Time Series.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@
10291029
"\t\tif (file != '') {",
10301030
"\t\t\terr = make_jpd_multiyear(folder, slash_back_to_forward(file));",
10311031
"\t\t\tif (err != \"\") {\r",
1032-
"\t\t\t\tmsgbox(\"Error reading file: \" + err);\r",
1032+
"\t\t\t\tmsgbox(\"Error creating JPD: \" + err);\r",
10331033
"\t\t\t\treturn;\r",
10341034
"\t\t\t}\r",
10351035
"\t\t\tfile_path = path_only(file);",

src/invoke.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4586,6 +4586,7 @@ void fcall_make_jpd_multiyear(lk::invoke_t& cxt)
45864586
wxLogStatus("error scanning '" + wf + "'");
45874587
//cxt.error(err);
45884588
cxt.result().assign(err);
4589+
has_more = dir.GetNext(&file);
45894590
continue;
45904591
}
45914592
else

0 commit comments

Comments
 (0)