Skip to content

Commit edd5b37

Browse files
Add ParamName to ArgumentException in ConvertTo-Base64UrlString for consistency
1 parent 6a73114 commit edd5b37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/public/ConvertTo-Base64UrlString.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
} else {
5252
$type = $InputObject.GetType()
5353
$message = "ConvertTo-Base64UrlString requires string or byte array input, received $type"
54-
throw [System.ArgumentException]::new($message)
54+
throw [System.ArgumentException]::new($message, 'InputObject')
5555
}
5656
}
5757

0 commit comments

Comments
 (0)