Skip to content

Commit

Permalink
libgpde: fix error handing parameters (#2596)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
  • Loading branch information
BadAssassin and nilason committed Feb 11, 2023
1 parent b8d7eaf commit 08912ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gpde/n_arrays_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ N_array_3d *N_read_rast3d_to_array_3d(char *name, N_array_3d *array, int mask)

/* Close files and exit */
if (!Rast3d_close(map))
Rast3d_fatal_error(map, NULL, 0, _("Error closing g3d file"));
Rast3d_fatal_error(_("Error closing g3d file <%s>"), name);

return data;
}
Expand Down Expand Up @@ -454,7 +454,7 @@ void N_write_array_3d_to_rast3d(N_array_3d *array, char *name, int mask)
Rast3d_fatal_error("Error flushing tiles with Rast3d_flush_all_tiles");
/* Close files and exit */
if (!Rast3d_close(map))
Rast3d_fatal_error(map, NULL, 0, _("Error closing g3d file"));
Rast3d_fatal_error(_("Error closing g3d file <%s>"), name);

return;
}

0 comments on commit 08912ad

Please sign in to comment.