Skip to content

Commit a50f04e

Browse files
committed
Fix errors not showing correctly in menu bar
1 parent 7065d5c commit a50f04e

File tree

5 files changed

+2
-14
lines changed

5 files changed

+2
-14
lines changed

DatWeatherDoe/AppDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
6565
switch result {
6666
case let .success(weatherData):
6767
self?.updateWeather(with: weatherData)
68-
case .failure:
69-
self?.menuBarManager.updateMenuBarWith(error: "Network Error")
68+
case let .failure(error):
69+
self?.menuBarManager.updateMenuBarWith(error: error.localizedDescription)
7070
}
7171
})
7272
.store(in: &cancellables)

DatWeatherDoe/Resources/Localization/de.lproj/Localizable.strings

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@
115115
/* Location error when fetching weather */
116116
"❗️Location" = "Positionsfehler";
117117

118-
/* Network error when fetching weather */
119-
"Network Error" = "Netzwerkfehler";
120-
121118
/* Weather refresh interval */
122119
"Refresh Interval" = "Aktualisierungsintervall";
123120

DatWeatherDoe/Resources/Localization/en.lproj/Localizable.strings

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@
118118
/* City error when fetching weather */
119119
"❗️City" = "❗️City";
120120

121-
/* Network error when fetching weather */
122-
"Network Error" = "Network Error";
123-
124121
/* Weather refresh interval */
125122
"Refresh Interval" = "Refresh Interval";
126123

DatWeatherDoe/Resources/Localization/fr.lproj/Localizable.strings

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@
100100
/* Mist weather condition */
101101
"Mist" = "Brumeux";
102102

103-
/* Network error when fetching weather */
104-
"Network Error" = "Erreur Réseau";
105-
106103
/* Partly cloudy weather condition */
107104
"Partly cloudy" = "Partiellement couvert";
108105

DatWeatherDoe/Resources/Localization/it.lproj/Localizable.strings

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@
115115
/* Location error when fetching weather */
116116
"❗️Location" = "Errore Posizione";
117117

118-
/* Network error when fetching weather */
119-
"Network Error" = "Errore Network";
120-
121118
/* Weather refresh interval */
122119
"Refresh Interval" = "Intervallo Refresh";
123120

0 commit comments

Comments
 (0)