beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
182 stars 95 forks source link

Add error handling when failing to write springsettings #1474

Open sprunk opened 2 months ago

sprunk commented 2 months ago

https://github.com/beyond-all-reason/spring/blob/ab88be7e235eba1417dbfa07e95277b480283c0b/rts/System/Config/ConfigSource.cpp#L95-L105

The else clause needs an error or at least a warning in infolog, ideally with reason (EPERM etc).

Some way to salvage the attempt (write the text to infolog so at least a user can copy it manually?) would probably be decent too but not mandatory.