Skip to content

Commit

Permalink
Merge pull request #583 from namecheap/bugfix/fastify-error
Browse files Browse the repository at this point in the history
fix(ilc/server): fastify error on not found template; local plugin autoload
  • Loading branch information
stas-nc authored Mar 22, 2024
2 parents 5dc17bb + c41a9f6 commit dd8e84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ilc/server/errorHandler/ErrorHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module.exports = class ErrorHandler {

async handleClientError(reply, error, statusCode) {
this.#logger.warn(error);
reply.sent = true;
this.#writeStaticError(reply.res, statusCode);
}

Expand Down
2 changes: 1 addition & 1 deletion ilc/server/plugins/PluginsLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PluginsLoader {

if (environment.isLegacyPluginsDiscoveryEnabled()) {
const pluginPaths = fg.sync(['ilc-plugin-*/package.json', '@*/ilc-plugin-*/package.json'], {
cwd: path.resolve(__dirname, '../../node_modules'),
cwd: path.resolve(__dirname, '../../../node_modules'), // dist dir
absolute: true,
});

Expand Down

0 comments on commit dd8e84d

Please sign in to comment.