0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Improved error messages for loading adapters

no-issue

Adds back functionality from
3988029472
This commit is contained in:
Fabien O'Carroll 2020-04-05 16:30:48 +02:00
parent 645ca9a547
commit f618bc5fcd

View file

@ -98,7 +98,10 @@ module.exports = class AdapterManager {
// Catch missing dependencies BUT NOT missing adapter
if (!err.message.includes(pathToAdapter)) {
throw new errors.IncorrectUsageError({err});
throw new errors.IncorrectUsageError({
message: `You are missing dependencies in your adapter ${pathToAdapter}`,
err
});
}
}
}