mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
handle unknown errors in getMetadata
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user