USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Configure error-expectation mode used in testing scripts
Controls the error-expectation flag used in testing and conditional flows. Pass "1" to expect an error (any version), a version string to expect an error only on that version, or "0" to stop expecting an error and clear the result buffer. When an expected error occurs it is absorbed rather than propagated.
| Parameter | Description |
|---|---|
| cmd | "1" to expect any error, a version string to expect a version-specific error, or "0" to clear the expectation |
ExpectError ""1" to expect any error, a version string to expect a version-specific error, or "0" to clear the expectation"