Skip to content

Commit

Permalink
fix typos in error message, test, and debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Jul 30, 2024
1 parent 95cf808 commit 5335a32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/neovim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export async function buildNightlyNeovim(os: Os): Promise<Installed> {
await exec('brew', ['install', 'ninja', 'libtool', 'automake', 'cmake', 'pkg-config', 'gettext', 'curl']);
break;
default:
throw new Error(`Building Neovim from soruce is not supported for ${os} platform`);
throw new Error(`Building Neovim from source is not supported for ${os} platform`);
}

// Add -nightly suffix since building stable Neovim from source may be supported in the future
Expand Down
2 changes: 1 addition & 1 deletion src/vim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export async function detectLatestWindowsReleaseTag(): Promise<string> {
throw new Error(`Unexpected redirect to ${location}. Redirected URL is not for release`);
}

core.debug(`Latest Vim relese tag ${m[1]} was extracted from redirect`);
core.debug(`Latest Vim release tag ${m[1]} was extracted from redirect`);
return m[1];
} catch (e) {
const err = ensureError(e);
Expand Down
2 changes: 1 addition & 1 deletion test/neovim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('Neovim installation', function () {
it('throws an error on Windows', async function () {
await A.rejects(
() => buildNightlyNeovimMocked('windows'),
/Building Neovim from soruce is not supported for windows/,
/Building Neovim from source is not supported for windows/,
);
});
});
Expand Down

0 comments on commit 5335a32

Please sign in to comment.