Skip to content

Commit

Permalink
chore: improve whitespace in an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mnmkng committed Mar 23, 2021
1 parent 4a79b0c commit b911cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser_launchers/browser_launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export default class BrowserLauncher {
return require(launcher); // eslint-disable-line
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
const msg = `Cannot find module '${launcher}'. Did you you install the '${launcher}' package?`
const msg = `Cannot find module '${launcher}'. Did you you install the '${launcher}' package?\n`
+ `Make sure you have '${launcher} in your package.json dependencies and in your package-lock.json, if you use it.`;
err.message = isAtHome()
? `${msg} On the Apify platform, '${launcher}' can only be used with the ${apifyImageName} Docker image.`
? `${msg}\nOn the Apify platform, '${launcher}' can only be used with the ${apifyImageName} Docker image.`
: msg;
}

Expand Down

0 comments on commit b911cfd

Please sign in to comment.