Improve error handling during group sends

This commit is contained in:
Fedor Indutny
2022-11-22 10:43:43 -08:00
committed by GitHub
parent f0a3735ca2
commit 991580a1ed
58 changed files with 299 additions and 324 deletions

View File

@@ -6,6 +6,7 @@ import { ReactWrapperView } from '../views/ReactWrapperView';
import { ErrorModal } from '../components/ErrorModal';
import { ProgressModal } from '../components/ProgressModal';
import * as log from '../logging/log';
import * as Errors from '../types/errors';
import { clearTimeoutIfNecessary } from './clearTimeoutIfNecessary';
export async function longRunningTaskWrapper<T>({
@@ -62,7 +63,7 @@ export async function longRunningTaskWrapper<T>({
} catch (error) {
log.error(
`longRunningTaskWrapper/${idLog}: Error!`,
error && error.stack ? error.stack : error
Errors.toLogFormat(error)
);
clearTimeoutIfNecessary(progressTimeout);