added error code

This commit is contained in:
eneller
2020-08-13 00:30:19 +02:00
parent 57d54e9916
commit 2c1f76c8f9

View File

@@ -231,7 +231,7 @@ public class main {
} }
} }
else{*/ else{*/
path = which(input); path = which(input);//"/bin/"+input;
//} //}
} else { } else {
return Integer.MIN_VALUE + 1; return Integer.MIN_VALUE + 1;
@@ -262,7 +262,7 @@ public class main {
//execute the program //execute the program
execv(path, inputArray); execv(path, inputArray);
printColor("execv fatal error", "red", true); printColor("execv fatal error", "red", true);
exit(0); exit(Integer.MIN_VALUE);
} }