Revert "Weather: replaces aggressive exit(1) with proper error handling (#2474)"

This reverts commit c5a8950ad4.
This commit is contained in:
Carter Li
2026-07-28 10:40:33 +08:00
parent 5476e01407
commit 738ad59f54
+2 -2
View File
@@ -7,8 +7,8 @@ static const char* status = FF_UNITIALIZED;
void ffPrepareWeather(FFWeatherOptions* options) {
if (status != FF_UNITIALIZED) {
status = "Weather module can only be used once due to internal limitations";
return;
fputs("Error: Weather module can only be used once due to internal limitations\n", stderr);
exit(1);
}
state.timeout = options->timeout;