Formatting voice recorder error

This commit is contained in:
Alvaro 2023-01-27 10:51:53 -07:00 committed by GitHub
parent 67b108c718
commit 42b4406ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ import { stringToMIMEType } from '../../types/MIME';
import type { BoundActionCreatorsMapObject } from '../../hooks/useBoundActions'; import type { BoundActionCreatorsMapObject } from '../../hooks/useBoundActions';
import { useBoundActions } from '../../hooks/useBoundActions'; import { useBoundActions } from '../../hooks/useBoundActions';
import { getComposerStateForConversation } from './composer'; import { getComposerStateForConversation } from './composer';
import * as Errors from '../../types/errors';
import { import {
ErrorDialogAudioRecorderType, ErrorDialogAudioRecorderType,
RecordingState, RecordingState,
@ -116,7 +117,7 @@ function startRecording(
}); });
} }
} catch (err) { } catch (err) {
log.error('AudioRecorder/ERROR_RECORDING', err); log.error('AudioRecorder/ERROR_RECORDING', Errors.toLogFormat(err));
dispatch({ dispatch({
type: ERROR_RECORDING, type: ERROR_RECORDING,
payload: ErrorDialogAudioRecorderType.ErrorRecording, payload: ErrorDialogAudioRecorderType.ErrorRecording,