From cd059b1726090fe6ad171d2020e61078508215a8 Mon Sep 17 00:00:00 2001
From: itzaname <me@sliving.io>
Date: Fri, 31 Dec 2021 17:20:53 -0500
Subject: [PATCH] Actually print the error instead of hiding it for some reason

---
 cmd/rbxcompiler/rbxcompiler.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cmd/rbxcompiler/rbxcompiler.go b/cmd/rbxcompiler/rbxcompiler.go
index 71a0084..e79ae18 100644
--- a/cmd/rbxcompiler/rbxcompiler.go
+++ b/cmd/rbxcompiler/rbxcompiler.go
@@ -29,13 +29,13 @@ func build() {
 
 	if *script {
 		if err := rbxbuilder.BuildScript(settings); err != nil {
-			fmt.Println("Failed to build script.")
+			fmt.Printf("Failed to build script: %s\n", err)
 			os.Exit(1)
 			return
 		}
 	} else {
 		if err := rbxbuilder.BuildPlace(settings); err != nil {
-			fmt.Println("Failed to build place.")
+			fmt.Printf("Failed to build place: %s\n", err)
 			os.Exit(1)
 			return
 		}
@@ -44,7 +44,7 @@ func build() {
 	if *doUpload {
 		rbx, err := roblox.New(os.Getenv("RBXCOOKIE"))
 		if err != nil {
-			fmt.Println("Failed to start roblox api client.")
+			fmt.Printf("Failed to start roblox api client: %s\n", err)
 			os.Exit(1)
 			return
 		}
@@ -57,7 +57,7 @@ func build() {
 			Group:   *groupId,
 		}, buffer)
 		if err != nil {
-			fmt.Println("Failed to upload place.")
+			fmt.Printf("Failed to upload place: %s\n", err)
 			os.Exit(1)
 			return
 		}
@@ -78,7 +78,7 @@ func generate() {
 		Source: *input,
 		Output: *output,
 	}); err != nil {
-		fmt.Println("Failed to dump place file to disk.")
+		fmt.Printf("Failed to dump place file to disk: %s\n", err)
 		os.Exit(2)
 	}