@openfin/node-adapter 35.78.7 → 35.78.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/node-adapter.js +2 -1
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -8054,7 +8054,8 @@ function errorToPOJO(error) {
|
|
8054
8054
|
stack: error.stack,
|
8055
8055
|
name: error.name,
|
8056
8056
|
message: error.message,
|
8057
|
-
|
8057
|
+
// support the case where stack is empty or missing
|
8058
|
+
toString: () => error.stack || error.toString()
|
8058
8059
|
};
|
8059
8060
|
}
|
8060
8061
|
errors.errorToPOJO = errorToPOJO;
|