Throw error on unknown type

This commit is contained in:
casperlamboo 2017-10-24 17:32:39 +02:00
parent a3390db96a
commit 93ec8408f7
1 changed files with 3 additions and 0 deletions

View File

@ -145,5 +145,8 @@ export async function createFile(objectsById, type, options) {
const base64 = bufferToBase64(buffer);
return base64;
}
default:
throw new Error(`did not regonize type ${type}`);
}
}
}