Skip to content

Commit 98ac445

Browse files
committed
Merge branch 'master' into json_output
2 parents ab3ac21 + 7096f4d commit 98ac445

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/dataio.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,8 @@ g3_istream_handle(std::shared_ptr<std::istream> &stream)
172172
boost::iostreams::file_descriptor_source *fs =
173173
is->component<boost::iostreams::file_descriptor_source>(
174174
is->size() - 1);
175-
if (!fs)
176-
log_fatal("Could not get file descriptor source");
177175

178-
return fs->handle();
176+
return !fs ? -1 : fs->handle();
179177
}
180178

181179
std::shared_ptr<std::ostream>

0 commit comments

Comments
 (0)