diff --git a/cmd/sst/ui/error.go b/cmd/sst/ui/error.go
index 2547fc20f..2e78652e7 100644
--- a/cmd/sst/ui/error.go
+++ b/cmd/sst/ui/error.go
@@ -20,7 +20,10 @@ func parseError(input string) []string {
 		sections := strings.Split(input, "*")
 		for _, line := range sections[1:] {
 			line = strings.TrimSpace(line)
-			splits := regexp.MustCompile("[a-zA-Z]+:").Split(line, -1)
+			splits := regexp.MustCompile("[a-zA-Z]+:").Split(
+				strings.Split(line, "\n")[0],
+				-1,
+			)
 			final := strings.TrimSpace(splits[len(splits)-1])
 
 			for _, split := range strings.Split(final, "\n") {
diff --git a/examples/test/sst.config.ts b/examples/test/sst.config.ts
index 2de3db81d..c93876a12 100644
--- a/examples/test/sst.config.ts
+++ b/examples/test/sst.config.ts
@@ -15,6 +15,7 @@ export default $config({
       handler: "src/index.handler",
       url: true,
     });
+    const bucket = new aws.s3.Bucket("MyBucket", { bucket: "foo" });
     return {
       url: fn.url,
     };