Can not customize error message

Is there any way to customize error message i am using UD v1.5 (UD v3).
this is my code:

Set-PSUAuthenticationMethod -ScriptBlock {
param(
[PSCredential]$Credential
)

You can call whatever cmdlets you like to conduct authentication here.

Just make sure to return the $Result with the Success property set to $true

$Result = [Security.AuthenticationResult]::new()
$user_name = $Credential.GetNetworkCredential().UserName
$password = $Credential.GetNetworkCredential().Password
try
{
$is_authen = Get-ADUser -Identity $user_name -credential $Credential | Select-Object -First 1
}
catch
{
$is_authen = $null
}

if ($is_authen)
{
$Result.UserName = $user_name
$Result.Success = $true
$Result
}
else
{
$Result.Success = $false
$Result.ErrorMessage = “error”
}
#$Result #.ErrorMessage = “error”
#New-UDAuthenticationResult -ErrorMessage “You aren’t Adam!!!”
}
image

it is fix.
New-PSUAuthenticationResult -ErrorMessage ‘Error. Bad username or password’