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