use "error" when type is Error

This renames "err" to "error" when the type is Error for consistency
(fixes redux complaints about non-serializable err).
This commit is contained in:
David Lechner
2022-10-17 13:44:21 -05:00
committed by David Lechner
parent 186fd4cd71
commit e67ae1c52b
10 changed files with 42 additions and 38 deletions
+3 -3
View File
@@ -14,13 +14,13 @@ import {
function handlePybricksEventProtocolError(
action: ReturnType<typeof pybricksEventProtocolError>,
): void {
console.error(action.err);
console.error(action.error);
}
function handleBleUartDidFailToWrite(
action: ReturnType<typeof bleUartDidFailToWrite>,
): void {
console.error(action.err);
console.error(action.error);
}
function handleBootloaderDidFailToConnect(
@@ -32,7 +32,7 @@ function handleBootloaderDidFailToConnect(
}
function handleBootloaderDidError(action: ReturnType<typeof bootloaderDidError>): void {
console.error(action.err);
console.error(action.error);
}
function handleFileStorageDidFailToStoreTextFileValue(