Attempt to fix display of error by setting to string
This commit is contained in:
parent
569030df1a
commit
1370cd6624
1 changed files with 6 additions and 1 deletions
7
scripts/external/processor.js
vendored
7
scripts/external/processor.js
vendored
|
@ -32,7 +32,12 @@ export default class processor {
|
|||
await this.product.analyze();
|
||||
} catch(err) {
|
||||
logging.error(err.name, err.message, err.stack, false);
|
||||
this.product.status[`error`] = err;
|
||||
|
||||
// Convert the error to an object.
|
||||
this.product.status[`error`] = {};
|
||||
[`name`, `message`, `stack`].forEach((KEY) => {
|
||||
this.product.status.error[KEY] = String(err[KEY]);
|
||||
})
|
||||
};
|
||||
|
||||
// Indicate that the process is done.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue