mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Handle more errors
This commit is contained in:
parent
09bcda2705
commit
0fbe32caea
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue