mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-23 07:11:42 +00:00
MediaService: Handle unexpected backend type
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b93f01fe57
commit
dc7d8ab470
1 changed files with 4 additions and 0 deletions
|
@ -202,6 +202,10 @@ export class MediaService {
|
||||||
return BackendType.S3;
|
return BackendType.S3;
|
||||||
case 'webdav':
|
case 'webdav':
|
||||||
return BackendType.WEBDAV;
|
return BackendType.WEBDAV;
|
||||||
|
default:
|
||||||
|
throw new Error(
|
||||||
|
`Unexpected media backend ${this.mediaConfig.backend.use}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue