openthrottle 0.1.5 → 0.1.6
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/init.js +10 -6
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -287,7 +287,9 @@ function setupDaytona(config) {
|
|
|
287
287
|
console.log(` Snapshot already exists: ${snapshotName}`);
|
|
288
288
|
}
|
|
289
289
|
else {
|
|
290
|
-
|
|
290
|
+
const detail = getErrorMessage(err);
|
|
291
|
+
console.log(` Snapshot creation failed: ${detail}`);
|
|
292
|
+
console.log(` You can create it manually:`);
|
|
291
293
|
console.log(` daytona snapshot create ${snapshotName} --image ${image} --cpu 2 --memory 4 --disk 10`);
|
|
292
294
|
}
|
|
293
295
|
}
|
|
@@ -304,9 +306,10 @@ async function pushSecrets(config) {
|
|
|
304
306
|
try {
|
|
305
307
|
execFileSync('gh', ['auth', 'status'], { stdio: 'pipe' });
|
|
306
308
|
}
|
|
307
|
-
catch {
|
|
308
|
-
|
|
309
|
-
console.log(
|
|
309
|
+
catch (err) {
|
|
310
|
+
const detail = getErrorMessage(err);
|
|
311
|
+
console.log(`\n gh CLI check failed: ${detail}`);
|
|
312
|
+
console.log(' Skipping secret push. Run "gh auth login" then set secrets manually.\n');
|
|
310
313
|
return;
|
|
311
314
|
}
|
|
312
315
|
// Detect repo
|
|
@@ -316,8 +319,9 @@ async function pushSecrets(config) {
|
|
|
316
319
|
encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'],
|
|
317
320
|
}).trim();
|
|
318
321
|
}
|
|
319
|
-
catch {
|
|
320
|
-
console.log(
|
|
322
|
+
catch (err) {
|
|
323
|
+
console.log(`\n Could not detect GitHub repo: ${getErrorMessage(err)}`);
|
|
324
|
+
console.log(' Skipping secret push.\n');
|
|
321
325
|
return;
|
|
322
326
|
}
|
|
323
327
|
// Show what we'd push
|