Throw error on unknown type
This commit is contained in:
parent
a3390db96a
commit
93ec8408f7
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue