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 #95 from kintone-labs/SSR-1904
Browse files Browse the repository at this point in the history
SSR-1904: add log error for attachment field
  • Loading branch information
Pham-Gia-Huong authored Mar 4, 2022
2 parents 8992ba6 + 6aa93ba commit 373eb76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import-with-bulkRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ func importFromCSV(app *kintone.App, _reader io.Reader) error {
} else if column.Code == "$revision" {

} else if column.Type == kintone.FT_FILE {

field, err := uploadFiles(app, col)
if err != nil {
return err
return fmt.Errorf("\ncolumn[" + strconv.Itoa(i) +"]"+ " - row[" + strconv.FormatUint(rowNumber, 10)+"]: "+ err.Error())
}
if field != nil {
record[column.Code] = field
Expand Down

0 comments on commit 373eb76

Please sign in to comment.