Get-Date -UFormat '' throws an unhelpful exception for an empty string argument #5047
Labels
Hacktoberfest
Potential candidate to participate in Hacktoberfest
Resolution-Fixed
The issue is fixed.
Up-for-Grabs
Up-for-grabs issues are not high priorities, and may be opportunities for external contributors
WG-Cmdlets-Utility
cmdlets in the Microsoft.PowerShell.Utility module
An empty string argument in
Get-Date -UFormat ''
throwsIndexOutOfRangeException
, it would be more helpful if the error said what was wrong and directed attention to the UFormat argument. "Missing or Invalid UFormat String" or words to that effect.Steps to reproduce
Expected behavior
Actual behavior
Environment data
The text was updated successfully, but these errors were encountered: