Skip to content

Commit

Permalink
fixing error logs |<Jenish>
Browse files Browse the repository at this point in the history
Signed-off-by: jenish-jain <jenishjain@rocketmail.com>
  • Loading branch information
jenish-jain committed Oct 8, 2023
1 parent e3248d6 commit 20ea6e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run Bean counter",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/bean_counter",
"envFile": "${workspaceFolder}/.env"
}
]
}
2 changes: 1 addition & 1 deletion pkg/gsheets/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (r repositoryImpl) AddNewWorksheet(spreadSheetID string, sheetName string)
}
resp, err := r.service.Spreadsheets.BatchUpdate(spreadSheetID, &batchRequest).Do()
if err != nil {
fmt.Errorf("error creating new worksheet for spreadSheetID : %s , error : %+v", spreadSheetID, err)
fmt.Printf("error creating new worksheet for spreadSheetID : %s , error : %+v \n", spreadSheetID, err)
return false
}
fmt.Printf("successfully created new worksheet for spreadSheetID : %s , response : %+v", spreadSheetID, resp)
Expand Down

0 comments on commit 20ea6e6

Please sign in to comment.