Skip to content

Commit

Permalink
fix(startup): Make "Upgrade the sheet" less confusing
Browse files Browse the repository at this point in the history
fixes #469
  • Loading branch information
symposion committed Apr 12, 2017
1 parent db25ea4 commit f0d5b73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/entry-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ function runStartup(character, retryCount) {
logger.info('Detected sheet version as : $$$', version);

if (Utils.versionCompare(version, MINIMUM_SHEET_VERSION) < 0) {
const error = `Incompatible sheet version ${version}. You need at least version ${MINIMUM_SHEET_VERSION} to ` +
'use this script. Please install an updated sheet.';
const error = `The Shaped companion script requires the Shaped sheet to be version ${MINIMUM_SHEET_VERSION} ` +
`or higher. You're currently using version ${version}. Please install the latest Shaped sheet from github: ` +
'https://github.com/mlenser/roll20-character-sheets/tree/master/5eShaped';
reporter.reportError(error);
logger.error(error);
commandProc.setDefaultCommandHandler(() => reporter.reportError(error));
Expand Down

0 comments on commit f0d5b73

Please sign in to comment.