Skip to content

Commit

Permalink
fix(ilc/server): fastify error on not found template; local plugin au…
Browse files Browse the repository at this point in the history
…toload
  • Loading branch information
stas-nc committed Mar 22, 2024
1 parent 5dc17bb commit c41a9f6
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 c41a9f6

Please sign in to comment.