recappi 0.1.58 → 0.1.59
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/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20153,6 +20153,14 @@ function renderFailure(command, error51, opts, data) {
|
|
|
20153
20153
|
finishHumanProgress(opts);
|
|
20154
20154
|
opts.stderr(`recappi: ${error51.message}
|
|
20155
20155
|
`);
|
|
20156
|
+
if (command === "upload" && isUploadBatch(data) && data.failures.length > 0) {
|
|
20157
|
+
opts.stderr("Failures:\n");
|
|
20158
|
+
for (const item of data.failures) {
|
|
20159
|
+
const label = humanFileLabel(item.filePath) ?? item.filePath;
|
|
20160
|
+
opts.stderr(` ${label}: ${item.error.message} (${item.error.code})
|
|
20161
|
+
`);
|
|
20162
|
+
}
|
|
20163
|
+
}
|
|
20156
20164
|
if (error51.hint) opts.stderr(`${error51.hint}
|
|
20157
20165
|
`);
|
|
20158
20166
|
}
|