handle unknown errors in getMetadata

Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
Danny Coates 2020-07-29 18:52:55 -07:00 committed by timvisee
parent e0f51c7fde
commit d8ac413064
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
1 changed files with 3 additions and 0 deletions

View File

@ -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');
}
}