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
93f64228
Commit
93f64228
authored
6 years ago
by
Roshan Patil
Browse files
Options
Downloads
Patches
Plain Diff
errorfunction bug fix for nil
parent
282ef342
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
+3
-0
servicebuildermdl/servicebuildermdl.go
with
3 additions
and
0 deletions
servicebuildermdl/servicebuildermdl.go
+
3
−
0
View file @
93f64228
...
...
@@ -292,6 +292,9 @@ 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
}
_
,
err
:=
fn
()
if
errormdl
.
CheckErr
(
err
)
!=
nil
{
loggermdl
.
LogError
(
err
)
...
...
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