gdb/diagnose: use unified message for command error
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
5b477aacca
commit
efb890abd3
1 changed files with 4 additions and 1 deletions
|
@ -76,8 +76,11 @@ class DiagnoseReport(gdb.Command):
|
|||
result = command.diagnose()
|
||||
except gdb.error as e:
|
||||
result = {
|
||||
"title": f"Command {name} failed",
|
||||
"summary": "Command execution failed",
|
||||
"result": "info",
|
||||
"command": name,
|
||||
"error": str(e),
|
||||
"message": str(e),
|
||||
}
|
||||
|
||||
gdb.write(f"Failed: {e}\n")
|
||||
|
|
Loading…
Reference in a new issue