0
0
mirror of https://github.com/Doodle3D/Doodle3D-Core.git synced 2025-01-07 02:03:49 +01:00

Throw error on unknown type

This commit is contained in:
casperlamboo 2017-10-24 17:32:39 +02:00
parent a3390db96a
commit 93ec8408f7

View File

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