Skip to content

Commit b4d8dfb

Browse files
authored
Error String Filled (#715)
Signed-off-by: CursedRock17 <[email protected]>
1 parent efc7845 commit b4d8dfb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tf2/src/cache.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ uint8_t TimeCache::findClosest(
122122

123123
// No values stored
124124
if (storage_.empty()) {
125-
if (error_code) {
126-
*error_code = TF2Error::TF2_NO_DATA_FOR_EXTRAPOLATION_ERROR;
127-
}
125+
cache::createExtrapolationException1(target_time, TimePoint(), error_str, error_code);
128126
return 0;
129127
}
130128

0 commit comments

Comments
 (0)