mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 01:50:08 +00:00
[nit] Show error message from response (#3308)
This commit is contained in:
@@ -156,11 +156,12 @@ export class PromptExecutionError extends Error {
|
||||
}
|
||||
|
||||
override toString() {
|
||||
let message = super.message
|
||||
let message = ''
|
||||
if (typeof this.response.error === 'string') {
|
||||
message += ': ' + this.response.error
|
||||
} else if (this.response.error.details) {
|
||||
message += ': ' + this.response.error.details
|
||||
message += this.response.error
|
||||
} else if (this.response.error) {
|
||||
message +=
|
||||
this.response.error.message + ': ' + this.response.error.details
|
||||
}
|
||||
|
||||
for (const [_, nodeError] of Object.entries(
|
||||
|
||||
Reference in New Issue
Block a user