diff --git a/doc.go b/doc.go index f800f8070..221491d98 100644 --- a/doc.go +++ b/doc.go @@ -1303,5 +1303,16 @@ Using custom configuration for PUT/GET: If you want to override some default configuration options, you can use `WithFileTransferOptions` context. There are multiple config parameters including progress bars or compression. + +# Surfacing errors originating from PUT and GET commands + +Default behaviour is to propagate the potential underlying errors encountered during executing calls associated with the PUT or GET commands to the caller, for increased awareness and easier handling or troubleshooting them. + +The behaviour is governed by the `RaisePutGetError` flag on `SnowflakeFileTransferOptions` (default: `true`) + +If you wish to ignore those errors instead, you can set `RaisePutGetError: false`. Example snippet: + + ctx := WithFileTransferOptions(context.Background(), &SnowflakeFileTransferOptions{RaisePutGetError: false}) + db.ExecContext(ctx, "PUT ...") */ package gosnowflake