Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
01b97e32
Commit
01b97e32
authored
6 years ago
by
Roshan Patil
Browse files
Options
Downloads
Patches
Plain Diff
Data validation handling for nill errorfunction
parent
93f64228
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!23
Devbranch to Master
,
!22
Route builder + Service builder
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servicebuildermdl/servicebuildermdl.go
+1
-1
servicebuildermdl/servicebuildermdl.go
with
1 addition
and
1 deletion
servicebuildermdl/servicebuildermdl.go
+
1
−
1
View file @
01b97e32
...
...
@@ -293,7 +293,7 @@ func (sb *ServiceBuilder) executeValidationFunction(dataKey string, fn func(inte
// executeErrorFunction exceute when validation failed for any step
func
(
sb
*
ServiceBuilder
)
executeErrorFunction
(
fn
func
()
(
map
[
string
]
interface
{},
error
))
(
*
interface
{},
error
)
{
if
fn
==
nil
{
return
nil
,
nil
return
nil
,
errors
.
New
(
"Data Validation failed and No recovery function found"
)
}
_
,
err
:=
fn
()
if
errormdl
.
CheckErr
(
err
)
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets