Updating error message to hopefully clarify when the master directory

ran out of file entries instead of having an actual full disk. #72
This commit is contained in:
Rob Greene 2022-03-10 21:42:43 -06:00
parent 92147b03ac
commit ae85bc8810
2 changed files with 13 additions and 4 deletions

View File

@ -253,7 +253,11 @@ public class ProdosFormatDisk extends FormattedDisk {
} }
blockNumber = nextBlockNumber; blockNumber = nextBlockNumber;
} }
if (directory instanceof ProdosSubdirectoryHeader) {
throw new DiskFullException(textBundle.get("ProdosFormatDisk.UnableToAllocateSpaceError"), this.getFilename()); //$NON-NLS-1$ throw new DiskFullException(textBundle.get("ProdosFormatDisk.UnableToAllocateSpaceError"), this.getFilename()); //$NON-NLS-1$
} else {
throw new DiskFullException(textBundle.get("ProdosFormatDisk.UnableToAllocateFileEntry"), this.getFilename());
}
} }
/** /**
@ -1438,8 +1442,12 @@ public class ProdosFormatDisk extends FormattedDisk {
} }
blockNumber = nextBlockNumber; blockNumber = nextBlockNumber;
} }
if (directory instanceof ProdosSubdirectoryHeader) {
throw new DiskFullException( throw new DiskFullException(
textBundle.get("ProdosFormatDisk.UnableToAllocateSpaceError") //$NON-NLS-1$ textBundle.get("ProdosFormatDisk.UnableToAllocateSpaceError") //$NON-NLS-1$
, this.getFilename()); , this.getFilename());
} else {
throw new DiskFullException(textBundle.get("ProdosFormatDisk.UnableToAllocateFileEntry"), this.getFilename());
}
} }
} }

View File

@ -85,6 +85,7 @@ RdosFileEntry.NotInUse=<NOT IN USE>
ProdosFormatDisk.InvalidDimensionError=Invalid dimension for isFree\! Did you call next first? ProdosFormatDisk.InvalidDimensionError=Invalid dimension for isFree\! Did you call next first?
ProdosFormatDisk.Blank=BLANK ProdosFormatDisk.Blank=BLANK
ProdosFormatDisk.UnableToAllocateSpaceError=Unable to allocate more space for another file\! ProdosFormatDisk.UnableToAllocateSpaceError=Unable to allocate more space for another file\!
ProdosFormatDisk.UnableToAllocateFileEntry=Unable to allocate another file entry in root directory\!
ProdosFormatDisk.VolumeAccess=Volume Access ProdosFormatDisk.VolumeAccess=Volume Access
ProdosFormatDisk.BitmapBlockNumber=Block Number of Bitmap ProdosFormatDisk.BitmapBlockNumber=Block Number of Bitmap
ProdosFormatDisk.CreationDate=Creation Date ProdosFormatDisk.CreationDate=Creation Date