Closed darknight closed 1 week ago
Original issue https://github.com/TabbyML/tabby/issues/2228 suggests print warning or error log if config.toml is invalid.
config.toml
Well, it's viable, what I'm thinking is perhaps stop until config.toml is fixed properly by the user.
This change applies following logic
If config.toml is missing, return default config allow tabby to be started with a Warning mesage
Warning
if config.toml is invalid, panic & display error
We still wanna support a missing config.toml (so tabby can start without any preconfiguration).
Maybe distinguish between a missing config and an invalid config?
Original issue https://github.com/TabbyML/tabby/issues/2228 suggests print warning or error log if
config.toml
is invalid.Well, it's viable, what I'm thinking is perhaps stop until
config.toml
is fixed properly by the user.This change applies following logic
If
config.toml
is missing, return default config allow tabby to be started with aWarning
mesageif
config.toml
is invalid, panic & display error