File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ int main(int argc, char* argv[])
242
242
243
243
if (argc != 2 )
244
244
{
245
- fprintf (stderr, " Error: Need one source file and one destination file." );
245
+ fprintf (stderr, " Error: Need one source file and one destination file.\n " );
246
246
return 1 ;
247
247
}
248
248
@@ -353,6 +353,7 @@ int copy_file(const char src[], const char dst[])
353
353
r = src_xfrm.open (src_file, src_pwd_key, src_pwd_key_len);
354
354
if (r == -1 )
355
355
{
356
+ fprintf (stderr, " Error: Can not read file %s, bad password or key?\n " , src);
356
357
src_file.close ();
357
358
dst_file.close ();
358
359
dst_file.remove (dst);
@@ -385,6 +386,7 @@ int copy_file(const char src[], const char dst[])
385
386
true );
386
387
if (r != 0 )
387
388
{
389
+ fprintf (stderr, " Error: Can not initialize file %s.\n " , dst);
388
390
src_xfrm.close (false );
389
391
src_file.close ();
390
392
dst_file.close ();
@@ -418,7 +420,7 @@ int copy_file(const char src[], const char dst[])
418
420
{
419
421
if (src_xfrm.is_encrypted ())
420
422
{
421
- fprintf (stderr, " Error: Can not read file %s, bad password?\n " , src);
423
+ fprintf (stderr, " Error: Can not read file %s, bad password or key ?\n " , src);
422
424
}
423
425
else
424
426
{
You can’t perform that action at this time.
0 commit comments