MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
230 stars 494 forks source link

More clarity on file extensions would be helpful #2380

Closed markolbert closed 1 year ago

markolbert commented 1 year ago

I was running into a typically useless and obscure Microsoft exception -- "The parameter is incorrect" (really? how nice of you to notice, and how stupid of you to not give any hint as to >>which<< parameter is incorrect) -- because I was specifying file type extensions without the leading "."

Please either make it clear that leading period is required. Or, better yet, have the people maintaining the code base update the exception message to actually be >>helpful<<. Or, best of all, have them check for the leading period and, if it's missing, add it.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

alvinashcraft commented 1 year ago

Hi. Thank you for your feedback. I've added some additional information to the parameter description to clarify that the dot is required when adding a file extension. If you would like to send feedback to the product team about making the exception more helpful, you can click the "This product" button at the bottom of the documentation page where is says "Submit and view feedback for". The docs changes should be merged and live later today.