Removes debugging code

This commit is contained in:
sloumdrone 2019-11-02 22:15:31 -07:00
parent 3a96792cf3
commit eef9ba6e81
1 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ func (c *client) saveFile(u Url, name string) {
savePath, _ := findAvailableFileName(c.Options["savelocation"], name)
err = ioutil.WriteFile(savePath, file, 0644)
if err != nil {
c.SetMessage("Error writing file: "+err.Error()+savePath, true)
c.SetMessage("Error writing file: "+err.Error(), true)
c.DrawMessage()
return
}
@ -552,7 +552,7 @@ func (c *client) saveFileFromData(d, name string) {
savePath, _ := findAvailableFileName(c.Options["savelocation"], name)
err := ioutil.WriteFile(savePath, data, 0644)
if err != nil {
c.SetMessage("Error writing file: "+err.Error()+savePath, true)
c.SetMessage("Error writing file: "+err.Error(), true)
c.DrawMessage()
return
}