Changeset 197


Ignore:
Timestamp:
11/04/02 15:38:57 (20 years ago)
Author:
piso
Message:

copyFile(): log more information if an error occurs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Utilities.java

    r196 r197  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Utilities.java,v 1.3 2002-11-04 15:32:22 piso Exp $
     5 * $Id: Utilities.java,v 1.4 2002-11-04 15:38:57 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    829829    {
    830830        if (!source.isFile()) {
    831             Log.error("copyFile error - source is not a file");
     831            Log.error("copyFile error - source is not a file: " + source);
    832832            return false;
    833833        }
    834834        if (destination.isDirectory()) {
    835             Log.error("copyFile error - destination is a directory");
     835            Log.error("copyFile error - destination is a directory: " + destination);
    836836            return false;
    837837        }
    838838        if (destination.isFile() && !destination.canWrite()) {
    839             Log.error("copyFile error - destination is read only");
     839            Log.error("copyFile error - destination is read only: " + destination);
    840840            return false;
    841841        }
     
    890890            if (destination.exists()) {
    891891                // Unable to delete existing destination file.
    892                 Log.error("copyFile error - unable to delete existing destination file");
     892                Log.error("copyFile error - unable to delete existing destination file: " + destination);
    893893                tempFile.delete();
    894894                return false;
Note: See TracChangeset for help on using the changeset viewer.