Formatting voice recorder error
This commit is contained in:
parent
67b108c718
commit
42b4406ad5
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue