rules: include the path in failed-to-map error message

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-02-10 11:11:27 +02:00
parent 043eda874d
commit 537564cb10
1 changed files with 2 additions and 1 deletions

View File

@ -1004,7 +1004,8 @@ xkb_components_from_rules(struct xkb_context *ctx,
ret = map_file(file, &string, &size);
if (!ret) {
log_err(ctx, "Couldn't read rules file: %s\n", strerror(errno));
log_err(ctx, "Couldn't read rules file \"%s\": %s\n",
path, strerror(errno));
goto err_file;
}