Mine
public text v1 · immutableBEFORE EDIT 1:
try {
SFVFile sfv;
try {
sfv = conn.getCurrentDirectory().lookupSFVFile();
} catch (FileStillTransferringException e) {
// I have no idea how to handle this
return new Reply(400, "SFVFile still transferring.");
}
if (checkName.endsWith(".sfv") &&
AFTER EDIT 1:
try {
SFVFile sfv;
// try {
sfv = conn.getCurrentDirectory().lookupSFVFile();
// } catch (FileStillTransferringException e) {
// I have no idea how to handle this
// return new Reply(400, "SFVFile still transferring.");
// }
if (checkName.endsWith(".sfv") &&
BEFORE EDIT 2:
"WARNING: checksum from transfer didn't match checksum in .sfv");
}
} catch (FileStillTransferringException e) {
response
.addComment("checksum from sfv doesn't exist yet, SFVFile is being uploaded");
}
} catch (NoAvailableSlaveException e1) {
AFTER EDIT 2:
"WARNING: checksum from transfer didn't match checksum in .sfv");
}
// } catch (FileStillTransferringException e) {
// response
// .addComment("checksum from sfv doesn't exist yet, SFVFile is being uploaded");
// }
} catch (NoAvailableSlaveException e1) {
BEFORE EDIT 3:
// badtargetFilename);
}
} catch (FileStillTransferringException e) {
response.addComment("No sfv to compare to (SFVTransferring), file allowed");
}
} catch (NoAvailableSlaveException e) {
AFTER EDIT 3:
// badtargetFilename);
}
// } catch (FileStillTransferringException e) {
// response.addComment("No sfv to compare to (SFVTransferring), file allowed");
// }
} catch (NoAvailableSlaveException e) {