mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
GH-2238 fix issues with whitespace/newlines in folder and instance names
This commit is contained in:
parent
d5037d4f79
commit
59e2f52db7
4 changed files with 9 additions and 6 deletions
|
|
@ -52,11 +52,11 @@ public class EntryPoint
|
|||
else if (pair[0].equals("abort"))
|
||||
return Action.Abort;
|
||||
|
||||
else throw new ParseException();
|
||||
else throw new ParseException("Error while parsing:" + pair[0]);
|
||||
}
|
||||
|
||||
if(pair.length != 2)
|
||||
throw new ParseException();
|
||||
throw new ParseException("Pair length is not 2.");
|
||||
|
||||
String command = pair[0];
|
||||
String param = pair[1];
|
||||
|
|
@ -71,7 +71,7 @@ public class EntryPoint
|
|||
return Action.Proceed;
|
||||
}
|
||||
else
|
||||
throw new ParseException();
|
||||
throw new ParseException("Invalid launcher type: " + param);
|
||||
}
|
||||
|
||||
m_params.add(command, param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue