diff --git a/controllers/convert.js b/controllers/convert.js index 329071f..d058665 100644 --- a/controllers/convert.js +++ b/controllers/convert.js @@ -82,7 +82,11 @@ export const convert = async (req, res) => { res .status(400) .send( - `This conversion module does not support mimetype: "${mimetype}". Supported mimetypes: ${moduleObject.from}` + `This conversion module does not support mimetype: "${mimetype}". Supported mimetypes: ${ + moduleObject.from instanceof Array + ? `[${moduleObject.from.join(", ")}]` + : moduleObject.from + }` ) ); diff --git a/package.json b/package.json index 5b207e2..380b2b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nottimtam/file-converter", - "version": "1.2.12", + "version": "1.2.13", "description": "A headless, self-hostable, open-source file conversion express middleware.", "main": "index.js", "type": "module",