When scripting, SecureCRT provides several Application script methods to aid you in managing errors. The first is GetLastError. This method returns the error code of the script exception that most recently happened. The next method is GetLastErrorMessage, which returns the error text of the script exception that most recently happened. And, to help you determine where an error came from, SecureCRT supports the ClearLastError, method which resets the response from GetLastError and GetLastErrorMessage to ERROR_SUCCESS and "The operation completed successfully."