Navigation Menu

Skip to content

Commit

Permalink
windows: show error message instead of error code
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent 8170b24 commit a09bd37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/io.c
Expand Up @@ -1457,8 +1457,8 @@ grn_mmap(grn_ctx *ctx, fileinfo *fi, off_t offset, size_t length)
*/
res = MapViewOfFile(fi->fmo, FILE_MAP_WRITE, 0, (DWORD)offset, (SIZE_T)length);
if (!res) {
MERR("MapViewOfFile failed #%lu <%" GRN_FMT_SIZE ">",
GetLastError(), mmap_size);
MERR("MapViewOfFile failed: <%" GRN_FMT_SIZE ">: %s",
mmap_size, grn_current_error_message());
return NULL;
}
mmap_size += length;
Expand Down

0 comments on commit a09bd37

Please sign in to comment.