Skip to content

Commit

Permalink
ENH: improve error message clarity for misplaced columns in QIIME map…
Browse files Browse the repository at this point in the history
…ping files

Fixes #63.
  • Loading branch information
jairideout committed Jan 21, 2016
1 parent fa069f0 commit 1f95dc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

## Development version

### Features
* Improved error message clarity for misplaced columns in QIIME mapping files ([#63](https://github.com/biocore/Keemei/issues/63))

### Bug fixes
* Removed broken link from "About" dialog

Expand Down
2 changes: 1 addition & 1 deletion src/QiimeFormat.gs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function findMisplacedQiimeColumns_(valueToPositions, requiredHeaders) {

if (requiredHeaders.hasOwnProperty(value)) {
var requiredLocation = requiredHeaders[value];
var message = ["Misplaced column; must be the " + requiredLocation[1] + " column"];
var message = [Utilities.formatString("Misplaced column; \"%s\" must be the %s column", value, requiredLocation[1])];

for (var i = 0; i < positions.length; i++) {
var position = positions[i];
Expand Down

0 comments on commit 1f95dc7

Please sign in to comment.