@stonyx/cron 0.2.1-alpha.56 → 0.2.1-alpha.57
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/dist/service.js +7 -0
- package/package.json +1 -1
package/dist/service.js
CHANGED
|
@@ -65,6 +65,13 @@ function forLog(value, maxLength) {
|
|
|
65
65
|
* reject instead of returning an `ExecuteResult`: a contract violation in the
|
|
66
66
|
* function written to prevent exactly that. Reading and coercing `message`
|
|
67
67
|
* inside the `try` is what closes it.
|
|
68
|
+
*
|
|
69
|
+
* `Cron` in `main.ts` carries its own `describeError` and the two deliberately
|
|
70
|
+
* differ: it renders for a log line only, so it prefers `err.stack`; this one
|
|
71
|
+
* is also returned to the caller as `ExecuteResult.error` and persisted in a
|
|
72
|
+
* per-job run log, where a stack would be an unbounded blob in every stored
|
|
73
|
+
* failure. Recorded in `docs/architecture.md` under Error Handling — do not
|
|
74
|
+
* merge them into a shared helper without reading that first.
|
|
68
75
|
*/
|
|
69
76
|
function describeError(err) {
|
|
70
77
|
try {
|