chore(sample-docs): unify error handling with panic(err).

This commit is contained in:
banasa44
2025-08-25 12:44:07 +02:00
committed by akcodez
parent 1f3e1ee670
commit 3855ea8065
41 changed files with 402 additions and 809 deletions

View File

@@ -1,8 +1,6 @@
package main
import (
"fmt"
"github.com/Peersyst/xrpl-go/xrpl/faucet"
"github.com/Peersyst/xrpl-go/xrpl/websocket"
)
@@ -20,8 +18,7 @@ func main() {
// Connect to the network
if err := client.Connect(); err != nil {
fmt.Println(err)
return
panic(err)
}
// ... custom code goes here