File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
3
3
import (
4
4
"context"
5
5
"fmt"
6
+ "log"
6
7
"net/url"
7
8
"os"
8
9
"strings"
@@ -22,7 +23,7 @@ import (
22
23
func main () {
23
24
opts := getConfigOpts ()
24
25
if err := validate (opts ); err != nil {
25
- panic (err )
26
+ log . Fatal (err )
26
27
}
27
28
28
29
// if the environment specific configs are not given, assume
@@ -32,25 +33,25 @@ func main() {
32
33
}
33
34
34
35
if err := createASHEnvironmentFile (opts ); err != nil {
35
- panic (err )
36
+ log . Fatal (err )
36
37
}
37
38
38
39
cloudConfig , err := getCloudConfig (opts .environment )
39
40
if err != nil {
40
- panic (err )
41
+ log . Fatal (err )
41
42
}
42
43
43
44
client , err := getClient (cloudConfig , opts )
44
45
if err != nil {
45
- panic (err )
46
+ log . Fatal (err )
46
47
}
47
48
ctx := context .Background ()
48
49
_ , err = moveBlobs (ctx , client , & moveBlobOpts {
49
50
source : "docker" ,
50
51
dest : "/docker" ,
51
52
})
52
53
if err != nil {
53
- panic (err )
54
+ log . Fatal (err )
54
55
}
55
56
}
56
57
You can’t perform that action at this time.
0 commit comments