• Joined on 2024-03-31
brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

Uh..... you want to panic instead of just exiting cleanly and printing an error message?

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

What? Why does this need a Result return type?

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

This is an improvement over the current error handling API?

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

There's a common idiom for using result::Result<T,E> where you create a new type also called Result that specifies the error type you want to use.

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

Is rewriting this to not return a specific exit code the best plan? I don't know if this ever worked as intended to cause the corresponding systemd units to fail and then bring the system into a state where the problem can be understood and diagnosed, but now the utility has an undefined exit code that we may end up relying on.

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

No, don't do that. It misleads reader to think there is a return value from both of these functions.

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

Ooops, you forgot to replace a libcitadel::error::Error the 'improved' version and everything still works when you return it. Are you still sure rewriting everything was what you needed to do?

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

Why did you rewrite this? Why is this buried in a massive commit described vaguely as "improve error handling"?

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

When you mix reformatting changes in with code changes then I have to read the reformatting changes very carefully to make sure you haven't changed anything.

brl commented on pull request brl/citadel-tools#4 2024-08-30 11:29:03 -04:00
Improve error handling by using std lib rust code

Sorry, but no.

brl pushed to master at brl/citadel 2024-08-30 09:38:52 -04:00
88b412a18f Add citadel-installer-ui icon
brl merged pull request brl/citadel#12 2024-08-30 09:38:51 -04:00
Add citadel-installer-ui icon
brl merged pull request brl/citadel#11 2024-08-30 09:38:20 -04:00
Fix x1 touchpad not working
brl pushed to master at brl/citadel 2024-08-30 09:38:20 -04:00
277cac8eea Fix x1 touchpad not working
brl pushed to master at brl/citadel 2024-08-30 09:36:33 -04:00
4b73960043 Fix installer fails because missing kernel module
brl merged pull request brl/citadel#8 2024-08-30 09:36:32 -04:00
Fix installer fails because missing kernel module
brl pushed to master at brl/citadel 2024-08-30 09:35:48 -04:00
8eacade6bf Fix not able to change timezones
brl merged pull request brl/citadel#7 2024-08-30 09:35:47 -04:00
Fix not able to change timezones
brl pushed to master at brl/citadel 2024-08-30 09:34:25 -04:00
5dfd3e31db Add features to qemu script and support for other linux distros
brl merged pull request brl/citadel#6 2024-08-30 09:34:23 -04:00
Add features to qemu script and support for other linux distros