Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xavier Garrido
CAMEL
Commits
79109e4c
Commit
79109e4c
authored
Jun 26, 2017
by
Plaszczynski Stephane
Browse files
throw execp when index not found
parent
3e4e4edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/camel/Class/ClassEngine.cc
src/camel/Class/ClassEngine.cc
+1
-1
No files found.
src/camel/Class/ClassEngine.cc
View file @
79109e4c
...
...
@@ -72,7 +72,7 @@ ClassParams::findIndex(const string& name){
index
=
i
;
break
;
}
}
planck_assert
(
index
>=
0
,
string
(
"key "
)
+
name
+
" not found in ClassParams"
);
if
(
index
<
0
)
throw
Message_error
(
string
(
"key "
)
+
name
+
" not found in ClassParams"
);
return
static_cast
<
size_t
>
(
index
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment