Skip to content

Commit

Permalink
SAS reader: Report row/column of bad strings
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Apr 9, 2019
1 parent 0789769 commit 1bb95cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sas/readstat_sas7bdat_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ static readstat_error_t sas7bdat_handle_data_value(readstat_variable_t *variable
if (retval != READSTAT_OK) {
if (ctx->handle.error) {
snprintf(ctx->error_buf, sizeof(ctx->error_buf),
"ReadStat: Error converting string to specified encoding: %.*s",
col_info->width, col_data);
"ReadStat: Error converting string (row=%u, col=%u) to specified encoding: %.*s",
ctx->parsed_row_count+1, col_info->index+1, col_info->width, col_data);
ctx->handle.error(ctx->error_buf, ctx->user_ctx);
}
goto cleanup;
Expand Down

0 comments on commit 1bb95cb

Please sign in to comment.