diff --git a/src/index.js b/src/index.js index 016e365..d9e8b20 100644 --- a/src/index.js +++ b/src/index.js @@ -35,14 +35,6 @@ function serve (options = { contentBase: '' }) { if (!error) { return found(response, filePath, content) } - if (error.code !== 'ENOENT') { - response.writeHead(500) - response.end('500 Internal Server Error' + - '\n\n' + filePath + - '\n\n' + Object.values(error).join('\n') + - '\n\n(rollup-plugin-serve)', 'utf-8') - return - } if (options.historyApiFallback) { const fallbackPath = typeof options.historyApiFallback === 'string' ? options.historyApiFallback : '/index.html' readFileFromContentBase(options.contentBase, fallbackPath, function (error, content, filePath) {