handle unknown errors in getMetadata
This commit is contained in:
parent
9bd96a9ec0
commit
4f03be590a
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,9 @@ export default function(state, emitter) {
|
||||||
if (!file.requiresPassword) {
|
if (!file.requiresPassword) {
|
||||||
return emitter.emit('pushState', '/404');
|
return emitter.emit('pushState', '/404');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.error(e);
|
||||||
|
return emitter.emit('pushState', '/error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue