Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #52 from kintone/SSR-563
Browse files Browse the repository at this point in the history
Fix Cannot output data with some specific applications (no error)
  • Loading branch information
josh-vo authored Nov 28, 2019
2 parents 8fe3d44 + 276717f commit 69f0b68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions export.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ func getRecords(app *kintone.App, fields []string, offset int64) ([]*kintone.Rec
if err != nil {
return nil, true, err
}
if len(records) < 1 {
fmt.Println("No record found.")
fmt.Println("Please check your query or permission settings.")
os.Exit(1)
}
return records, (len(records) < EXPORT_ROW_LIMIT), nil

}
Expand Down

0 comments on commit 69f0b68

Please sign in to comment.