vtb-appit 0.1.6 → 0.1.7
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/appit.js +3 -5
- package/package.json +1 -1
package/appit.js
CHANGED
|
@@ -121,14 +121,13 @@ class Appit {
|
|
|
121
121
|
this.log('info', `✓ ${step.name} completed successfully`);
|
|
122
122
|
} catch(error) {
|
|
123
123
|
this.log('error', `✗ ${step.name} failed`, error.message);
|
|
124
|
-
|
|
124
|
+
this.saveErrorToHistory(`Step ${step.name} failed`, '', error.message);
|
|
125
125
|
// Continue with next step instead of failing entirely
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
this.history.updatedAt = new Date().getTime();
|
|
130
|
-
this.history.status = errors.length === 0 ? 'completed' : 'completed_with_errors';
|
|
131
|
-
this.history.errors = errors;
|
|
130
|
+
this.history.status = (!this.history.errors || this.history.errors.length === 0) ? 'completed' : 'completed_with_errors';
|
|
132
131
|
|
|
133
132
|
fs.writeFileSync(this.historyPath, JSON.stringify(this.history, null, 2));
|
|
134
133
|
|
|
@@ -1783,8 +1782,7 @@ class Appit {
|
|
|
1783
1782
|
const errorEntry = {
|
|
1784
1783
|
step: step,
|
|
1785
1784
|
objectId: objectId,
|
|
1786
|
-
error: errorMessage
|
|
1787
|
-
timestamp: new Date().toISOString()
|
|
1785
|
+
error: errorMessage
|
|
1788
1786
|
};
|
|
1789
1787
|
|
|
1790
1788
|
this.history.errors.push(errorEntry);
|