- ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data) ;
- my $path = $self->_filesystem_path($params{dbfile},$params{version});
- die "no file found in backend" if !-f $path;
+ ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data);
+ my $path = $self->_filesystem_path($params{dbfile}, $params{version});
+
+ die "No file found at $path. Expected: $params{dbfile}{file_name}, file.id: $params{dbfile}{id}" if !-f $path;
+