mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
7ab9fb7cec
commit
ac37ca0d98
|
@ -168,6 +168,10 @@ func (w *DbfsClient) putFile(ctx context.Context, path string, overwrite bool, f
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, err = io.Copy(contents, file)
|
_, err = io.Copy(contents, file)
|
||||||
|
if err != nil {
|
||||||
|
pw.CloseWithError(fmt.Errorf("error while streaming file to dbfs: %w", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
err = writer.Close()
|
err = writer.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
pw.CloseWithError(fmt.Errorf("failed to close multipart form writer: %w", err))
|
pw.CloseWithError(fmt.Errorf("failed to close multipart form writer: %w", err))
|
||||||
|
|
Loading…
Reference in New Issue