cognova 0.1.2 → 0.1.3
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/cli/index.js +4 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2342,7 +2342,10 @@ async function update() {
|
|
|
2342
2342
|
} catch (err) {
|
|
2343
2343
|
updateFailed = true;
|
|
2344
2344
|
s.stop(import_picocolors6.default.red("Update failed"));
|
|
2345
|
-
|
|
2345
|
+
const execErr = err;
|
|
2346
|
+
R2.error(`Error: ${execErr.message || err}`);
|
|
2347
|
+
if (execErr.stderr)
|
|
2348
|
+
R2.error(import_picocolors6.default.dim(String(execErr.stderr).trim()));
|
|
2346
2349
|
R2.step(import_picocolors6.default.bold("Rolling back"));
|
|
2347
2350
|
const rollbackSpinner = bt2();
|
|
2348
2351
|
rollbackSpinner.start("Restoring previous version");
|