Any way to change these error messages

Any way to change these error messages

avatar
Product: PowerShell Universal
Version: 5.0.6


I have been building my apps and while these error messages are useful to me is there anyway to change them for the benefit of my end users? Like I would like to have them say invalid input or something like that.



e4651cfdbbbcdfb8afa70ab581d1ae814fff2722

e4651cfdbbbcdfb8afa70ab581d1ae814fff2722.png

avatar
(anonymous user)

Recommended Answer

Additionally, within the metadata of the app, you can disable those built in error toasts and design your own using Show-UDToast (or, more properly, New-UDAlert [1]) to account for those error cases. You should be able to use the existing error codes to track down what is causing the error and hook there.

All Comments (2)

avatar

Forms and Steppers allows for validating input on submit.

Form | PowerShell Universal
This would allow you to determine if the input is valid, rather than throwing an error.

avatar

Additionally, within the metadata of the app, you can disable those built in error toasts and design your own using Show-UDToast (or, more properly, New-UDAlert [1]) to account for those error cases. You should be able to use the existing error codes to track down what is causing the error and hook there.