Skip to content

Commit

Permalink
Updated dependency installation error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Jul 12, 2023
1 parent 9133a1b commit 00d84fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/extensions/mod_management/InstallManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2246,11 +2246,13 @@ class InstallManager {
} else if ([403, 404, 410].includes(err['statusCode'])) {
api.showErrorNotification(
'Failed to install dependency',
'The mod seems to have been deleted and can no longer be downloaded.', {
message: refName,
id: notiId,
allowReport: false,
});
`${err['message']}\n\nThis error is usually caused by an invalid request, maybe you followed a link that has expired or you lack permission to access it.`,
{
allowReport: false,
id: notiId,
message: refName,
});

return Bluebird.resolve();
} else if (err.code === 'ERR_INVALID_PROTOCOL') {
const msg = err.message.replace(/ Expected .*/, '');
Expand Down

0 comments on commit 00d84fd

Please sign in to comment.