mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
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
Block a user