display a more sensible error when depth <= 0

file sizes must be integers