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

Error handling #9

Merged
merged 6 commits into from Oct 30, 2021
Merged

Error handling #9

merged 6 commits into from Oct 30, 2021

Conversation

ghost
Copy link

@ghost ghost commented Oct 30, 2021

image
You deleted my error handling part, and now it errs again.
Let me tell you why this happens. Rust prohibits saving null values in variables, for memory safety. What you're doing is trying to save a null value, and Rust kills the command BEFORE the expect command is even started. That's why you should check if the argument is null or not BEFORE the command that saves the variable. OK?

@azur1s
Copy link
Owner

azur1s commented Oct 30, 2021

sorry 😭

@azur1s azur1s merged commit 75846c0 into azur1s:master Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant