Skip to content

Commit

Permalink
Fix error log
Browse files Browse the repository at this point in the history
Signed-off-by: Md. Ishtiaq Islam <[email protected]>
  • Loading branch information
ishtiaqhimel committed Apr 22, 2024
1 parent dd5a203 commit cfa02a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,8 @@ func (opt *esOptions) restoreDashboardObjects(appBinding *appcatalog.AppBinding)

for _, space := range spaces {
if !isExist(existingSpaces, space.Id) {
err := dashboardClient.CreateSpace(space)
if err != nil {
return fmt.Errorf("failed to create space %s %w", space.Id, err)
if err = dashboardClient.CreateSpace(space); err != nil {
return fmt.Errorf("failed to create space %s: %w", space.Id, err)
}
}

Expand Down

0 comments on commit cfa02a5

Please sign in to comment.