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

No indication that a config is malformed/incomplete #61

Open
7 tasks
TicClick opened this issue Jan 12, 2024 · 1 comment
Open
7 tasks

No indication that a config is malformed/incomplete #61

TicClick opened this issue Jan 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TicClick
Copy link
Owner

TicClick commented Jan 12, 2024

for example, if a new field is missing, it'll just crash:

user@black-cube:~/stuff/steel$ cargo rw
   Compiling steel v0.7.2 (/home/user/stuff/steel)
--- snip ---
    Finished release [optimized] target(s) in 5.42s
     Running `target/x86_64-pc-windows-gnu/release/steel.exe`
user@black-cube:~/stuff/steel$ echo $?
101

TODO

  • load settings before everything else
  • use them when setting logging level
  • create application / mod plugin with settings
  • return error from the setting loader/saver using eyre
    • on initialization failure, show a simple egui window
    • if the error happened during runtime, request the core to exit with error attached
    • in core, display the error in the same simple window
@TicClick TicClick added the bug Something isn't working label Jan 12, 2024
@TicClick
Copy link
Owner Author

TicClick commented Feb 4, 2024

note: lack of write access also goes here -- such as if a file or a directory are read-only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant