codeceptjs 4.0.1-beta.30 → 4.0.1-beta.31
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/lib/container.js +4 -2
- package/package.json +1 -1
package/lib/container.js
CHANGED
|
@@ -89,7 +89,7 @@ class Container {
|
|
|
89
89
|
container.support.I = mod
|
|
90
90
|
}
|
|
91
91
|
} catch (e) {
|
|
92
|
-
throw
|
|
92
|
+
throw e
|
|
93
93
|
}
|
|
94
94
|
} else {
|
|
95
95
|
// Create default actor - this sets up the callback in asyncHelperPromise
|
|
@@ -847,7 +847,9 @@ async function loadSupportObject(modulePath, supportObjectName) {
|
|
|
847
847
|
|
|
848
848
|
throw new Error(`Support object "${supportObjectName}" should be an object, class, or function, but got ${typeof actualObj}`)
|
|
849
849
|
} catch (err) {
|
|
850
|
-
|
|
850
|
+
const newErr = new Error(`Could not include object ${supportObjectName} from module '${modulePath}': ${err.message}`)
|
|
851
|
+
newErr.stack = err.stack
|
|
852
|
+
throw newErr
|
|
851
853
|
}
|
|
852
854
|
}
|
|
853
855
|
|