mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
gdb/diagnose: use unified message for command error
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user