Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rudimentary detection of spaces in filenames on Java 8 #3549

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

dualspiral
Copy link
Contributor

@Zidane There may be a better place for the code, but I figured we probably want to bail out immediately. I think this suffices, but it is in applaunch so just want to make sure it's in the right place before it goes in.

Not using an exception because all that'll happen is we'll print the message, then there will be a stack trace, then everyone won't read the message. If this is the last thing that is printed, and an error code that is non-zero is sent out, at least some panels might detect the crash, preven the auto-restart, and we have a fighting chance that people will read the output.

@dualspiral
Copy link
Contributor Author

As a visual - the red arrow on the prompt in my shell indicates a non-zero exit code (but I'd hope System.exit sans security manager worked in Java...):

image

@dualspiral dualspiral merged commit 56807bb into api-8 Oct 30, 2021
@dualspiral dualspiral deleted the api8/j8space branch October 30, 2021 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant