Navigation Menu

Skip to content

Commit

Permalink
grn_db_open(): set error information on error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 8, 2015
1 parent 344f14c commit 7b52bd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/db.c
Expand Up @@ -332,6 +332,8 @@ grn_db_open(grn_ctx *ctx, const char *path)
gen_pathname(path, specs_path, 0);
s->specs = grn_ja_open(ctx, specs_path);
if (!s->specs) {
ERR(GRN_NO_MEMORY_AVAILABLE,
"[db][open] failed to open specs: <%s>", specs_path);
goto exit;
}
}
Expand Down

0 comments on commit 7b52bd2

Please sign in to comment.