We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2aad39 commit 1c168a8Copy full SHA for 1c168a8
main.go
@@ -135,6 +135,7 @@ func main() {
135
newPath := updater.BinPath(path)
136
err := copyExe(path, newPath)
137
if err != nil {
138
+ log.Println("Copy error: ", err)
139
panic(err)
140
}
141
@@ -153,10 +154,12 @@ func main() {
153
154
func copyExe(from, to string) error {
155
data, err := ioutil.ReadFile(from)
156
157
+ log.Println("Cannot read file: ", from)
158
return err
159
160
err = ioutil.WriteFile(to, data, 0755)
161
162
+ log.Println("Cannot write file: ", to)
163
164
165
return nil
0 commit comments