Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1,412
Issues
1,412
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
d3ddd510
Commit
d3ddd510
authored
Jul 05, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/tools.cpp: throw an exception when the seed is unknown
parent
f10e2458
Pipeline
#31702
canceled with stages
in 2 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
algo/core/tools.cpp
algo/core/tools.cpp
+6
-1
No files found.
algo/core/tools.cpp
View file @
d3ddd510
...
...
@@ -32,7 +32,12 @@ string expand_seed(const string &seed)
return
expand_seed
(
DEFAULT_SEED
);
if
(
seed
.
find
(
SEED_YES
)
==
std
::
string
::
npos
)
return
seedMap
[
seed
];
{
if
(
seedMap
.
find
(
seed
)
==
seedMap
.
end
())
throw
invalid_argument
(
"Unknown seed: "
+
seed
);
else
return
seedMap
[
seed
];
}
return
seed
;
}
...
...
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