Skip to content

Commit

Permalink
added column name to error message on import type mismatch, to ease d…
Browse files Browse the repository at this point in the history
…ebugging
  • Loading branch information
Rich-Harris committed Jul 26, 2012
1 parent a5400c6 commit fbe643d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ Version 0.0.1.2
} else {
throw("incorrect value '" + props[c.name] +
"' of type " + Miso.typeOf(props[c.name], c) +
" passed to column with type " + c.type);
" passed to column '" + c.name + "' with type " + c.type);
}
}
c.data[rowIndex] = props[c.name];
Expand Down
2 changes: 1 addition & 1 deletion src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@
} else {
throw("incorrect value '" + row[column.name] +
"' of type " + Miso.typeOf(row[column.name], column) +
" passed to column with type " + column.type);
" passed to column '" + column.name + "' with type " + column.type);

}
}
Expand Down

0 comments on commit fbe643d

Please sign in to comment.