@@ -1212,7 +1212,8 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup,
12121212{
12131213/* In case of incremental restore truncate file just to be safe */
12141214if (already_exists && fio_ftruncate (out ,0 ))
1215- elog (ERROR ,"Cannot truncate file \"%s\": %s" ,strerror (errno ));
1215+ elog (ERROR ,"Cannot truncate file \"%s\": %s" ,
1216+ to_fullpath ,strerror (errno ));
12161217return 0 ;
12171218}
12181219
@@ -1233,9 +1234,10 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup,
12331234elog (ERROR ,"Failed to locate a full copy of nonedata file \"%s\"" ,to_fullpath );
12341235
12351236if (tmp_file -> write_size <=0 )
1236- elog (ERROR ,"Full copy of nonedata file has invalid size. "
1237+ elog (ERROR ,"Full copy of nonedata file has invalid size: %li . "
12371238"Metadata corruption in backup %s in file: \"%s\"" ,
1238- base36enc (tmp_backup -> start_time ),to_fullpath );
1239+ tmp_file -> write_size ,base36enc (tmp_backup -> start_time ),
1240+ to_fullpath );
12391241
12401242/* incremental restore */
12411243if (already_exists )
@@ -1245,14 +1247,15 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup,
12451247
12461248if (file_crc == tmp_file -> crc )
12471249{
1248- elog (VERBOSE ,"Remote nonedata file \"%s\"is unchanged , skip restore" ,
1250+ elog (VERBOSE ,"Already existing nonedata file \"%s\"has the same checksum , skip restore" ,
12491251to_fullpath );
12501252return 0 ;
12511253}
12521254
12531255/* Checksum mismatch, truncate file and overwrite it */
12541256if (fio_ftruncate (out ,0 ))
1255- elog (ERROR ,"Cannot truncate file \"%s\": %s" ,strerror (errno ));
1257+ elog (ERROR ,"Cannot truncate file \"%s\": %s" ,
1258+ to_fullpath ,strerror (errno ));
12561259}
12571260
12581261if (tmp_file -> external_dir_num == 0 )