Actually need to return the translation

This commit is contained in:
d98762625 2019-05-24 16:46:07 +01:00
parent d51e8ec378
commit 1a9c9a5ddf

View file

@ -404,7 +404,7 @@ class Dish {
}; };
try { try {
toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type](); return toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type]();
} catch (err) { } catch (err) {
throw new DishError(`Error translating from ${Dish.enumLookup(this.type)} to ArrayBuffer: ${err}`); throw new DishError(`Error translating from ${Dish.enumLookup(this.type)} to ArrayBuffer: ${err}`);
} }