Fix syntax error in panic calls

This commit is contained in:
Marcin S 2020-09-08 16:53:05 +02:00
parent ab66b6ff5b
commit 072b626475
1 changed files with 2 additions and 2 deletions

View File

@ -45,14 +45,14 @@ func main() {
// upload
skylink, err := client.UploadFile("./src.jpg", skynet.DefaultUploadOptions)
if err != nil {
panic("Unable to upload: %v", err.Error())
panic("Unable to upload: " + err.Error())
}
fmt.Printf("Upload successful, skylink: %v\\n", skylink)
// download
err = client.DownloadFile("./dst.jpg", skylink, skynet.DefaultDownloadOptions)
if err != nil {
panic("Something went wrong, please try again.\\nError: %v", err.Error())
panic("Something went wrong, please try again.\\nError: " + err.Error())
}
fmt.Println("Download successful")
}`;