ante-erp-cli 1.11.25 → 1.11.26
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/package.json +1 -1
- package/src/utils/docker.js +12 -2
package/package.json
CHANGED
package/src/utils/docker.js
CHANGED
|
@@ -358,14 +358,24 @@ export async function runMigrations(composeFile) {
|
|
|
358
358
|
'deploy'
|
|
359
359
|
]);
|
|
360
360
|
|
|
361
|
+
// Combine stdout and stderr for complete output
|
|
362
|
+
const combinedOutput = [stdout, stderr].filter(Boolean).join('\n').trim();
|
|
363
|
+
|
|
361
364
|
return {
|
|
362
365
|
success: true,
|
|
363
|
-
output:
|
|
366
|
+
output: combinedOutput || 'Migration completed'
|
|
364
367
|
};
|
|
365
368
|
} catch (error) {
|
|
369
|
+
// Merge both stdout and stderr to show complete error messages
|
|
370
|
+
// This ensures error codes (like P3005) and resolution links are visible
|
|
371
|
+
const combinedError = [error.stdout, error.stderr]
|
|
372
|
+
.filter(Boolean)
|
|
373
|
+
.join('\n')
|
|
374
|
+
.trim();
|
|
375
|
+
|
|
366
376
|
return {
|
|
367
377
|
success: false,
|
|
368
|
-
output:
|
|
378
|
+
output: combinedError || error.message
|
|
369
379
|
};
|
|
370
380
|
}
|
|
371
381
|
}
|