diff --git a/btcd.go b/btcd.go
index <HASH>..<HASH> 100644
--- a/btcd.go
+++ b/btcd.go
@@ -141,6 +141,7 @@ func main() {
 
 	// Up some limits.
 	if err := limits.SetLimits(); err != nil {
+		fmt.Fprintf(os.Stderr, "failed to set limits: %v\n", err)
 		os.Exit(1)
 	}
Output error to stderr if the limits can't be set.