From 84338205299ae62217f963295fd1db9ae0c9287d Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 29 Jun 2023 13:06:28 +0200 Subject: [PATCH] Fix typo in error messages (#280) Signed-off-by: Martin Dummer --- src/WebApi_prometheus.cpp | 2 +- src/WebApi_ws_Huawei.cpp | 4 ++-- src/WebApi_ws_Pylontech.cpp | 4 ++-- src/WebApi_ws_live.cpp | 4 ++-- src/WebApi_ws_vedirect_live.cpp | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/WebApi_prometheus.cpp b/src/WebApi_prometheus.cpp index 0fd54b42..21c115fb 100644 --- a/src/WebApi_prometheus.cpp +++ b/src/WebApi_prometheus.cpp @@ -101,7 +101,7 @@ void WebApiPrometheusClass::onPrometheusMetricsGet(AsyncWebServerRequest* reques request->send(stream); } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/prometheus/metrics temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/prometheus/metrics has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); WebApi.sendTooManyRequests(request); } diff --git a/src/WebApi_ws_Huawei.cpp b/src/WebApi_ws_Huawei.cpp index 7e15db8d..1c3873bf 100644 --- a/src/WebApi_ws_Huawei.cpp +++ b/src/WebApi_ws_Huawei.cpp @@ -69,7 +69,7 @@ void WebApiWsHuaweiLiveClass::loop() _ws.textAll(buffer); } } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); } } @@ -129,7 +129,7 @@ void WebApiWsHuaweiLiveClass::onLivedataStatus(AsyncWebServerRequest* request) response->setLength(); request->send(response); } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); WebApi.sendTooManyRequests(request); } diff --git a/src/WebApi_ws_Pylontech.cpp b/src/WebApi_ws_Pylontech.cpp index 60cf0e5f..d29a6187 100644 --- a/src/WebApi_ws_Pylontech.cpp +++ b/src/WebApi_ws_Pylontech.cpp @@ -69,7 +69,7 @@ void WebApiWsPylontechLiveClass::loop() _ws.textAll(buffer); } } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); } } @@ -149,7 +149,7 @@ void WebApiWsPylontechLiveClass::onLivedataStatus(AsyncWebServerRequest* request response->setLength(); request->send(response); } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); WebApi.sendTooManyRequests(request); } diff --git a/src/WebApi_ws_live.cpp b/src/WebApi_ws_live.cpp index 44b786bd..5f9fbe41 100644 --- a/src/WebApi_ws_live.cpp +++ b/src/WebApi_ws_live.cpp @@ -86,7 +86,7 @@ void WebApiWsLiveClass::loop() } } catch (const std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); } catch (const std::exception& exc) { MessageOutput.printf("Unknown exception in /api/livedata/status. Reason: \"%s\".\r\n", exc.what()); } @@ -259,7 +259,7 @@ void WebApiWsLiveClass::onLivedataStatus(AsyncWebServerRequest* request) request->send(response); } catch (const std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); WebApi.sendTooManyRequests(request); } catch (const std::exception& exc) { MessageOutput.printf("Unknown exception in /api/livedata/status. Reason: \"%s\".\r\n", exc.what()); diff --git a/src/WebApi_ws_vedirect_live.cpp b/src/WebApi_ws_vedirect_live.cpp index 539917a7..1edbe13a 100644 --- a/src/WebApi_ws_vedirect_live.cpp +++ b/src/WebApi_ws_vedirect_live.cpp @@ -78,7 +78,7 @@ void WebApiWsVedirectLiveClass::loop() } } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/vedirectlivedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/vedirectlivedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); } _lastWsPublish = millis(); @@ -182,7 +182,7 @@ void WebApiWsVedirectLiveClass::onLivedataStatus(AsyncWebServerRequest* request) request->send(response); } catch (std::bad_alloc& bad_alloc) { - MessageOutput.printf("Call to /api/livedata/status temporarely out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); + MessageOutput.printf("Calling /api/livedata/status has temporarily run out of resources. Reason: \"%s\".\r\n", bad_alloc.what()); WebApi.sendTooManyRequests(request); }