GetLastError()
ts
// in class: Session
function GetLastError(): string;
This function returns the last error encountered by the server during the operation of the current session.
Example
ts
{
var lc = Session.GetLastCommand();
var le = Session.GetLastError();
Log(lc + '-' + le); // Log command and error (ex: `GET /file.zip - Error 5: access denied`)
}