-
Notifications
You must be signed in to change notification settings - Fork 58
feat: expand Properties panel capabilities #1712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d1dc98a
9a81e82
1fd8712
770e635
82cefc0
6bf3302
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -289,20 +289,20 @@ export class TSRHandler { | |||||
|
|
||||||
| return `Device "${device?.deviceName ?? id}" (${device?.instanceId ?? 'instance unknown'}): ` + e | ||||||
| } | ||||||
| const fixError = (id: string, e: Error): any => { | ||||||
| const fixError = (id: string, e: any): any => { | ||||||
| const device = this._coreTsrHandlers[id]?._device | ||||||
| const name = `Device "${device?.deviceName ?? id}" (${device?.instanceId ?? 'instance unknown'})` | ||||||
|
|
||||||
| if (!e || !('message' in e)) { | ||||||
| if (!e || typeof e !== 'object' || !('message' in e)) { | ||||||
| return { | ||||||
| message: name + ': ' + 'Unknown error: ' + JSON.stringify(e), | ||||||
| message: name + ': ' + 'Unknown error: ' + stringifyError(e, true), | ||||||
| } | ||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||
| } | ||||||
|
|
||||||
| return { | ||||||
| message: e.message && name + ': ' + e.message, | ||||||
| name: e.name && name + ': ' + e.name, | ||||||
| stack: e.stack && e.stack + '\nAt device' + name, | ||||||
| message: e.message !== undefined ? name + ': ' + e.message : undefined, | ||||||
| name: e.name !== undefined ? name + ': ' + e.name : undefined, | ||||||
| stack: e.stack !== undefined ? e.stack + '\nAt device' + name : undefined, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix stack suffix formatting in device context. Line 275 currently builds 🔧 Proposed fix- stack: e.stack !== undefined ? e.stack + '\nAt device' + name : undefined,
+ stack: e.stack !== undefined ? `${e.stack}\nAt device ${name}` : undefined,📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| } | ||||||
| } | ||||||
| const fixContext = (...context: any[]): any => { | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.