- if ((mf = g_mapped_file_new(file_name, FALSE, NULL)) == NULL) {
- g_error("%s(): couldn't map temp file\n", __PRETTY_FUNCTION__);
+ if ((mf = g_mapped_file_new(file_name, FALSE, &error)) == NULL) {
+ g_error(_("Couldn't map file %s: %s"), file_name, error->message);
+ g_error_free(error);