sst 2.8.14 → 2.8.16

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.
@@ -106,7 +106,10 @@ export class EdgeFunction extends Construct {
106
106
  const bundle = await useRuntimeHandlers().build(this.node.addr, "deploy");
107
107
  // create wrapper that calls the handler
108
108
  if (bundle.type === "error")
109
- throw new Error(`There was a problem bundling the SSR function for the "${this.scope.node.id}" Site.`);
109
+ throw new Error([
110
+ `There was a problem bundling the SSR function for the "${this.scope.node.id}" Site.`,
111
+ ...bundle.errors,
112
+ ].join("\n"));
110
113
  const asset = new Asset(this.scope, `FunctionAsset`, {
111
114
  path: bundle.out,
112
115
  });
@@ -159,7 +159,10 @@ export class SsrFunction extends Construct {
159
159
  const bundle = await useRuntimeHandlers().build(this.node.addr, "deploy");
160
160
  // create wrapper that calls the handler
161
161
  if (bundle.type === "error")
162
- throw new Error(`There was a problem bundling the SSR function for the "${this.node.id}" Site.`);
162
+ throw new Error([
163
+ `There was a problem bundling the SSR function for the "${this.node.id}" Site.`,
164
+ ...bundle.errors,
165
+ ].join("\n"));
163
166
  const code = AssetCode.fromAsset(bundle.out);
164
167
  onBundled(code);
165
168
  });
@@ -274,7 +274,7 @@ export class SsrSite extends Construct {
274
274
  });
275
275
  }
276
276
  catch (e) {
277
- throw new Error(`There was a problem building the "${this.node.id}" StaticSite.`);
277
+ throw new Error(`There was a problem building the "${this.node.id}" site.`);
278
278
  }
279
279
  }
280
280
  /////////////////////
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.8.14",
4
+ "version": "2.8.16",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
@@ -74,7 +74,7 @@
74
74
  "ink-spinner": "^5.0.0",
75
75
  "kysely": "^0.23.5",
76
76
  "kysely-codegen": "^0.10.0",
77
- "kysely-data-api": "^0.2.0",
77
+ "kysely-data-api": "^0.2.1",
78
78
  "minimatch": "^6.1.6",
79
79
  "openid-client": "^5.1.8",
80
80
  "ora": "^6.1.2",