Skip to content

fix: remove stray $ from 'Can't find directory' error message - #17

Open
Avicennasis wants to merge 1 commit into
overwolf:masterfrom
Avicennasis:docs/fix-typos
Open

fix: remove stray $ from 'Can't find directory' error message#17
Avicennasis wants to merge 1 commit into
overwolf:masterfrom
Avicennasis:docs/fix-typos

Conversation

@Avicennasis

Copy link
Copy Markdown

Summary

Fix 1 typo in a user-facing error message:

  • plugins/simple-io-plugin/FileListenerWorker.cs: $"Can't find directory ${path}" -> $"Can't find directory {path}"

ListenOnDirectory builds its not-found message with a C# interpolated string, but there is an extra $ in front of the placeholder. In an interpolated string that $ is a literal character, so the message the caller actually receives is Can't find directory $C:\some\path rather than Can't find directory C:\some\path. The sibling message a few lines down in the same method ($"Exception: {ex}", line 138) shows the intended form, and this is the only ${ in the repository's C# sources.

Message text only - no functional change, no identifier renamed, and the string is not asserted anywhere in unittest/.

Not included

A scan also flagged several misspelled identifiers in this plugin - _listenTaskes, warpper, DirctoryExists and the SignitureHelper class in plugins/downloader/Security/. Those are left alone deliberately: renaming symbols is out of scope for a typo fix and is a maintainer's call. Happy to follow up with a separate rename PR if that would be useful.

The interpolated string in FileListenerWorker.ListenOnDirectory has an
extra $ before the placeholder, so the message reaches the caller as
"Can't find directory $C:\path" instead of "Can't find directory C:\path".
The sibling message on line 138 ($"Exception: {ex}") shows the intended form.

Message text only - no functional change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant