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:
parent
645ca9a547
commit
f618bc5fcd
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue