diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-07-28 06:07:57 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-07-28 06:07:57 +0100 |
commit | 02f3beac25065a5614b5bb548b1635ff051193ba (patch) | |
tree | ae75e6eb697fa8cc18c00b8732e95a897424def8 /pkg/datamaps/db.go | |
parent | 76e347271d4ce0e611389839253e3ac5cc50822e (diff) |
better importing to database from populated sheet
Diffstat (limited to 'pkg/datamaps/db.go')
-rw-r--r-- | pkg/datamaps/db.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/datamaps/db.go b/pkg/datamaps/db.go index 0b6f588..fb1785f 100644 --- a/pkg/datamaps/db.go +++ b/pkg/datamaps/db.go @@ -214,7 +214,7 @@ func importXLSXtoDB(dm_name string, return_name string, file string, db *sql.DB) var dmlId *int if err := dmlIdRow.Scan(&dmlId); err != nil { - log.Fatal(err) + fmt.Errorf("cannot find a datamap_line row for %s and %s: %s\n", sheetName, cellRef, err) } insertStmt, err := db.Prepare("insert into return_data (dml_id, value) values(?,?)") |