Skip to content

Commit

Permalink
tiny text fix (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jul 17, 2023
1 parent f44a6c7 commit 83b1aa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ const dataProvider: DataProvider[] = [
suitName: "non existed config must return error with explanation",
commandLine: "bot bench $ pallet dev some_pallet",
expectedResponse: new Error(
`Positioned arguments are not supported anymore. I guess you meant \`bot bench polkadot-pallet --pallet=pallet_name\`, but I could be wrong.\n[Read docs](http://cmd-bot.docs.com/static/docs/latest.html) to find out how to run your command.`,
`Positional arguments are not supported anymore. I guess you meant \`bot bench polkadot-pallet --pallet=pallet_name\`, but I could be wrong.\n[Read docs](http://cmd-bot.docs.com/static/docs/latest.html) to find out how to run your command.`,
),
},
{
suitName: "non existed config must return error with explanation",
commandLine: "bot bench-overhead $ kusama",
expectedResponse: new Error(
`Positioned arguments are not supported anymore. I guess you meant \`bot bench-overhead --runtime=kusama\`, but I could be wrong.\n[Read docs](http://cmd-bot.docs.com/static/docs/latest.html) to find out how to run your command.`,
`Positional arguments are not supported anymore. I guess you meant \`bot bench-overhead --runtime=kusama\`, but I could be wrong.\n[Read docs](http://cmd-bot.docs.com/static/docs/latest.html) to find out how to run your command.`,
),
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/bot/parse/parsePullRequestBotCommandLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const parsePullRequestBotCommandLine = async (
const guesswork = await guessCommand(ctx, commandLine, repo);
const suggestMessage = guesswork ? `I guess you meant \`${guesswork}\`, but I could be wrong.` : "";
return new Error(
`Positioned arguments are not supported anymore. ${suggestMessage}\n[Read docs](${docsPath}) to find out how to run your command.`,
`Positional arguments are not supported anymore. ${suggestMessage}\n[Read docs](${docsPath}) to find out how to run your command.`,
);
}

Expand Down

0 comments on commit 83b1aa1

Please sign in to comment.