summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-20 22:33:18 +0200
committerGitHub <noreply@github.com>2022-07-20 22:33:18 +0200
commit5db878a76e747dedc66ca8e6892098adb517f660 (patch)
tree403f8f6efa19f72254927d0d52c94fa31796d895
parent4ba6c9a19fc1989f67da40e3f2a6d96080ebe9f2 (diff)
parent5b47489bf81b796f9a2fd6e85813f037302f8a2b (diff)
Merge pull request #63170 from KoBeWi/main_failed
-rw-r--r--main/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 2bb67f17f1..8f4f348dba 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1044,10 +1044,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (I->next()) {
String p = I->next()->get();
- if (OS::get_singleton()->set_cwd(p) == OK) {
- //nothing
- } else {
- project_path = I->next()->get(); //use project_path instead
+ if (OS::get_singleton()->set_cwd(p) != OK) {
+ OS::get_singleton()->print("Invalid project path specified: \"%s\", aborting.\n", p.utf8().get_data());
+ goto error;
}
N = I->next()->next();
} else {