mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-09 20:52:39 +01:00
handle unknown errors in getMetadata
Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
parent
e0f51c7fde
commit
d8ac413064
@ -235,6 +235,9 @@ export default function(state, emitter) {
|
||||
if (!file.requiresPassword) {
|
||||
return emitter.emit('pushState', '/404');
|
||||
}
|
||||
} else {
|
||||
console.error(e);
|
||||
return emitter.emit('pushState', '/error');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user