[lldb] Improve error reporting in ScriptedInterface
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 17 Feb 2023 01:34:37 +0000 (17:34 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 4 Mar 2023 03:33:02 +0000 (19:33 -0800)
commitefc52361ddb7282825f1f813553f322bd119b830
tree1af3840e5e2a1cee8d55fc9f838eb14e6b513c76
parentf190ec6882706d30c606e62986512371925288a9
[lldb] Improve error reporting in ScriptedInterface

This patch improve error reporting in the Scripted Interface.

Previously, it would only log the content of the Status object and
overwrite it with the error_msg function parameter.

This patch changes that to append the Status object content to the
`error_msg` string.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/include/lldb/Interpreter/ScriptedInterface.h