mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
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:
committed by
David Lechner
parent
186fd4cd71
commit
e67ae1c52b
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user