Skip to content

Commit

Permalink
Print file name in error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieTien97 authored Nov 13, 2024
1 parent 69fb039 commit 92d39d5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public TimeseriesMetadata readTimeseriesMetadata(
if (ignoreNotExistDevice) {
return null;
}
throw new IOException("Device {" + device + "} is not in tsFileMetaData");
throw new IOException("Device {" + device + "} is not in tsFileMetaData of " + file);
}
ByteBuffer buffer =
readData(metadataIndexPair.left.getOffset(), metadataIndexPair.right, ioSizeConsumer);
Expand Down Expand Up @@ -589,7 +589,8 @@ public ITimeSeriesMetadata readITimeseriesMetadata(Path path, boolean ignoreNotE
if (ignoreNotExistDevice) {
return null;
}
throw new IOException("Device {" + path.getDeviceString() + "} is not in tsFileMetaData");
throw new IOException(
"Device {" + path.getDeviceString() + "} is not in tsFileMetaData of " + file);
}
ByteBuffer buffer = readData(metadataIndexPair.left.getOffset(), metadataIndexPair.right);
MetadataIndexNode metadataIndexNode;
Expand Down Expand Up @@ -658,7 +659,7 @@ public List<TimeseriesMetadata> readTimeseriesMetadata(
if (ignoreNotExistDevice) {
return Collections.emptyList();
}
throw new IOException("Device {" + device + "} is not in tsFileMetaData");
throw new IOException("Device {" + device + "} is not in tsFileMetaData of " + file);
}
List<TimeseriesMetadata> timeseriesMetadataList = new ArrayList<>();

Expand Down

0 comments on commit 92d39d5

Please sign in to comment.