From f79498e4b5dd5b50e3bf8b4aada169b4d70be793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 9 May 2024 08:49:25 +0800 Subject: [PATCH] PublicIP / Weather: clarify error messages Fix #907 --- src/detection/publicip/publicip.c | 2 +- src/detection/weather/weather.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/publicip/publicip.c b/src/detection/publicip/publicip.c index d144f7219..a66d9f3d1 100644 --- a/src/detection/publicip/publicip.c +++ b/src/detection/publicip/publicip.c @@ -9,7 +9,7 @@ void ffPreparePublicIp(FFPublicIpOptions* options) { if (status != FF_UNITIALIZED) { - fputs("Error: this module can only be used once due to internal limitations\n", stderr); + fputs("Error: PublicIp module can only be used once due to internal limitations\n", stderr); exit(1); } diff --git a/src/detection/weather/weather.c b/src/detection/weather/weather.c index de3281348..fccdd2d12 100644 --- a/src/detection/weather/weather.c +++ b/src/detection/weather/weather.c @@ -8,7 +8,7 @@ void ffPrepareWeather(FFWeatherOptions* options) { if (status != FF_UNITIALIZED) { - fputs("Error: this module can only be used once due to internal limitations\n", stderr); + fputs("Error: Weather module can only be used once due to internal limitations\n", stderr); exit(1); }