handle unknown errors in getMetadata

This commit is contained in:
Danny Coates 2020-07-29 18:52:55 -07:00
parent 9bd96a9ec0
commit 4f03be590a
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB

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