Skip to content

Commit a7e674b

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/mapillary/opensfm/opensfm/src/map/src
Reviewed By: caglarpir Differential Revision: D86286447 fbshipit-source-id: a9453a439fe4b21505cb1162116de888b80ed00d
1 parent 6f90a17 commit a7e674b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opensfm/src/map/src/tracks_manager.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ map::TracksManager InstanciateFromStreamV0(S& fstream) {
8282
SeparateLineByTabs(line, elems);
8383
if (elems.size() != N_ENTRIES) // process only valid lines
8484
{
85-
std::runtime_error(
85+
throw std::runtime_error(
8686
"Encountered invalid line. A line must contain exactly " +
8787
std::to_string(N_ENTRIES) + " values!");
8888
}
@@ -112,7 +112,7 @@ map::TracksManager InstanciateFromStreamV1(S& fstream) {
112112
SeparateLineByTabs(line, elems);
113113
if (elems.size() != N_ENTRIES) // process only valid lines
114114
{
115-
std::runtime_error(
115+
throw std::runtime_error(
116116
"Encountered invalid line. A line must contain exactly " +
117117
std::to_string(N_ENTRIES) + " values!");
118118
}
@@ -142,7 +142,7 @@ map::TracksManager InstanciateFromStreamV2(S& fstream) {
142142
SeparateLineByTabs(line, elems);
143143
if (elems.size() != N_ENTRIES) // process only valid lines
144144
{
145-
std::runtime_error(
145+
throw std::runtime_error(
146146
"Encountered invalid line. A line must contain exactly " +
147147
std::to_string(N_ENTRIES) + " values!");
148148
}

0 commit comments

Comments
 (0)