Skip to content

fix: uncaught panic when directory passed via -C doesn't exist#5218

Closed
roele wants to merge 1 commit into
jdx:mainfrom
roele:issues/5215
Closed

fix: uncaught panic when directory passed via -C doesn't exist#5218
roele wants to merge 1 commit into
jdx:mainfrom
roele:issues/5215

Conversation

@roele

@roele roele commented May 28, 2025

Copy link
Copy Markdown
Contributor

Fixes #5215

Comment thread src/config/settings.rs
Ok(settings) => settings,
Err(e) => {
error!("{e}");
exit(1);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't skip the main error handling logic. What we need to do is remove Config::get() and replace all uses with Config::try_get()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already had a feeling that this fix is not the way to go...

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to see if AI can do this

@jdx jdx closed this in #5223 May 28, 2025
@jdx jdx closed this in c44b499 May 28, 2025
@roele roele deleted the issues/5215 branch May 29, 2025 05:24
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.

Uncaught panic when directory passed via -C doesn't exist

2 participants