Skip to content

Commit 2b741a6

Browse files
authored
Merge pull request #550 from OpenVicProject/fix/base-path-error
Fix misuse of OV_ERR_FAIL_COND_V_MSG in set_base_path
2 parents de4c853 + cc7b56e commit 2b741a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openvic-simulation/GameManager.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ namespace OpenVic {
4040
}
4141

4242
inline bool set_base_path(Dataloader::path_span_t base_path) {
43-
OV_ERR_FAIL_COND_V_MSG(base_path.size() > 1, "more than one dataloader base path provided", false);
44-
OV_ERR_FAIL_COND_V_MSG(!dataloader.set_roots(base_path, {}), "failed to set dataloader base path", false);
43+
OV_ERR_FAIL_COND_V_MSG(base_path.size() > 1, false, "Too many base paths were provided, only one should be set.");
44+
OV_ERR_FAIL_COND_V_MSG(!dataloader.set_roots(base_path, {}), false, "Failed to set Dataloader's base path");
4545
return true;
4646
};
4747

0 commit comments

Comments
 (0)