PDBG("Opening file \"%s\" with mode \"%s\"\n", file->path->str, mode);
file->fp = fopen(file->path->str, mode);
if (!file->fp) {
- PERR("Cannot open file \"%s\" with mode \"%s\": %s",
+ PERR("Cannot open file \"%s\" with mode \"%s\": %s\n",
file->path->str, mode, strerror(errno));
goto error;
}