Skip to content

GetLastErrorTime()

ts
GetLastErrorTime(): Date;

Returns the timestamp of the last command that was issued by the client and caused an error in the server, as a JavaScript Date object.

Example

ts
{
  if (Session) {
    var lerrt = Session.GetLastErrorTime();
    Log(lerrt.toString()); // Will log something like `Sat Mar 18 2023 06:12:38 GMT-0700`
  } else {
    Log('Session object is not available.');
  }
}