Skip to content

Commit

Permalink
add variable name in error log when does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Nov 5, 2018
1 parent 5e3f413 commit acae2d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ class NetCDFReader {
}

// throws if variable not found
utils.notNetcdf(variable === undefined, 'variable not found');
utils.notNetcdf(
variable === undefined,
`variable not found: ${variableName}`
);

// go to the offset position
this.buffer.seek(variable.offset);
Expand Down

0 comments on commit acae2d7

Please sign in to comment.