* Explore: Fix displaying rich history saving error message
* Keep generic error message
* remove testing snippet
(cherry picked from commit f8ebcaa0d9)
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
This commit is contained in:
co-authored by
Piotr Jamróz
parent
dc363a05ac
commit
06015fbdaf
@@ -78,7 +78,7 @@ export function addToRichHistory(
|
||||
store.setObject(RICH_HISTORY_KEY, updatedHistory);
|
||||
return updatedHistory;
|
||||
} catch (error) {
|
||||
dispatch(notifyApp(createErrorNotification(error)));
|
||||
dispatch(notifyApp(createErrorNotification('Saving rich history failed', error.message)));
|
||||
return richHistory;
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export function updateStarredInRichHistory(richHistory: RichHistoryQuery[], ts:
|
||||
store.setObject(RICH_HISTORY_KEY, updatedHistory);
|
||||
return updatedHistory;
|
||||
} catch (error) {
|
||||
dispatch(notifyApp(createErrorNotification(error)));
|
||||
dispatch(notifyApp(createErrorNotification('Saving rich history failed', error.message)));
|
||||
return richHistory;
|
||||
}
|
||||
}
|
||||
@@ -133,7 +133,7 @@ export function updateCommentInRichHistory(
|
||||
store.setObject(RICH_HISTORY_KEY, updatedHistory);
|
||||
return updatedHistory;
|
||||
} catch (error) {
|
||||
dispatch(notifyApp(createErrorNotification(error)));
|
||||
dispatch(notifyApp(createErrorNotification('Saving rich history failed', error.message)));
|
||||
return richHistory;
|
||||
}
|
||||
}
|
||||
@@ -144,7 +144,7 @@ export function deleteQueryInRichHistory(richHistory: RichHistoryQuery[], ts: nu
|
||||
store.setObject(RICH_HISTORY_KEY, updatedHistory);
|
||||
return updatedHistory;
|
||||
} catch (error) {
|
||||
dispatch(notifyApp(createErrorNotification(error)));
|
||||
dispatch(notifyApp(createErrorNotification('Saving rich history failed', error.message)));
|
||||
return richHistory;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user