We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c399bb commit 8c82399Copy full SHA for 8c82399
.changeset/cold-aliens-learn.md
@@ -0,0 +1,5 @@
1
+---
2
+"wrangler": patch
3
4
+
5
+Correctly handle 0 length responses to wrangler containers list.
packages/wrangler/src/containers/containers.ts
@@ -175,6 +175,18 @@ async function listCommandHandle(
175
return;
176
}
177
178
+ // If we don't get multiple applications for any reason exit
179
+ if (
180
+ applications === undefined ||
181
+ applications === null ||
182
+ applications.length === 0
183
+ ) {
184
+ logRaw(
185
+ "No containers found. See https://dash.cloudflare.com/?to=/:account/workers/containers to learn more."
186
+ );
187
+ return;
188
+ }
189
190
const applicationDetails = (a: Application) => {
191
const details = flatDetails(a);
192
return {
0 commit comments