mirror of https://github.com/schollz/croc.git
Handle more errors
This commit is contained in:
parent
09bcda2705
commit
0fbe32caea
|
@ -86,7 +86,10 @@ func runClient(connectionType string, codePhrase string) {
|
|||
log.Error(err)
|
||||
return
|
||||
}
|
||||
ioutil.WriteFile(fileName, decrypted, 0644)
|
||||
err = ioutil.WriteFile(fileName, decrypted, 0644)
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
if !debugFlag {
|
||||
os.Remove(fileName + ".encrypted")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue