How to get error messages?

In the previous version, the warning errors were displayed in the echo tab. Now that it is removed, I would like to get those through echo. But how do I get those?

The errors page does not display in what loop the error has occured. I can still get the detail I need from the “all” tab in logs but I do not want to scroll through all the details. I am trying to get the ignored errors with the loop number through echo messages. Any suggestions?

Indeed, we made a change as requested here Echo log - show only Echo.

But to clarify the new issue: The error messages (in error log mode) contain the line numbers, so you can see where they happened - or?

Thank you for the reply. The Error log shows the line number but in a loop, i would like to know the loop counter too. So I am trying to get the error message with the loop counter value under echo log. For the same, I would like to know how to get the system error message via code for echo.

I am a bit confused. Can you maybe post a small example macro to demo the issue?

Sure. In case of errors like Error #101: Kantu is not connected to a browser tab, I would like to know which Loop was missed to execute. In Error in CSV line No. ${!csvReadLineNumber} ", I would like to get “Error #101: Kantu is not connected to a browser tab”

Here is an sample:

{
“Name”: “Sample”,
“CreationDate”: “2020-11-9”,
“Commands”: [
{
“Command”: “csvRead”,
“Target”: “mails.csv”,
“Value”: “”
},
{
“Command”: “while_v2”,
“Target”: “{!csvReadStatus} == \"OK\"", "Value": "" }, { "Command": "store", "Target": "true", "Value": "!ErrorIgnore" }, { "Command": "deleteAllCookies", "Target": "", "Value": "" }, { "Command": "open", "Target": "{!COL13}”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Status = {!col1}, line = {!csvReadLineNumber}”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=MainContentPlaceHolder_DownloadRegister_txtEmailAddress”,
“Value”: “${!COL3}”
},

{
  "Command": "clickAndWait",
  "Target": "link=Download",
  "Value": ""
},
{
  "Command": "assertElementPresent",
  "Target": "id=MainContentPlaceHolder_txtFirstName",
  "Value": ""
},
{
  "Command": "if_v2",
  "Target": "${!StatusOK}",
  "Value": ""
},
{
  "Command": "type",
  "Target": "id=MainContentPlaceHolder_txtFirstName",
  "Value": "${!COL2}"
},

{
  "Command": "click",
  "Target": "id=btnCreateAccount",
  "Value": ""
},
{
  "Command": "select",
  "Target": "id=MainContentPlaceHolder_DownloadRegister_rptQuestions_Responses_0",
  "Value": "label=${!COL16}"
},

{
  "Command": "click",
  "Target": "link=Download",
  "Value": ""
},
{
  "Command": "else",
  "Target": "Error in CSV line No.  ${!csvReadLineNumber} ",
  "Value": ""
},
{
  "Command": "echo",
  "Target": "Reading CSV line No.  ${!csvReadLineNumber} ",
  "Value": ""
},

{
  "Command": "end",
  "Target": "",
  "Value": ""
},

{
  "Command": "executeScript",
  "Target": "return ${!csvReadLineNumber}+1",
  "Value": "!csvReadLineNumber"
},
{
  "Command": "echo",
  "Target": "Reading CSV line No.  ${!csvReadLineNumber} ",
  "Value": ""
},

{
  "Command": "csvRead",
  "Target": "mails.csv",
  "Value": ""
},
{
  "Command": "endWhile",
  "Target": "",
  "Value": ""
}

]
}

Please see Error #101 Solution