aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/datamaps/db.go')
-rw-r--r--pkg/datamaps/db.go2
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(?,?)")