FIXME: remote type gessing should be done in xo-remote-parser.

This commit is contained in:
Julien Fontanet
2016-03-03 17:32:09 +01:00
parent 2458107903
commit 6406bb7fb6

View File

@@ -45,6 +45,8 @@ export default class {
smb: RemoteHandlerSmb,
nfs: RemoteHandlerNfs
}
// FIXME: should be done in xo-remote-parser.
const type = remote.url.split('://')[0]
if (!Handler[type]) {
throw new Error('Unhandled remote type')