Skip to content

Commit

Permalink
chore: fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Vasek - Tom C <[email protected]>
  • Loading branch information
TomChv committed Jan 20, 2025
1 parent c3443de commit 9d0fc64
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker_sdk/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ func main() {

name, err := dag.CurrentModule().Name(ctx)
if err != nil {
panic(fmt.Errorf("failed to get current module name: %w", err))
fmt.Println(fmt.Errorf("failed to get user's codebase: %w", err))

os.Exit(2)
}

formattedName := strings.ToUpper(string(name[0])) + name[1:]

codebase, err := codebase.New()
if err != nil {
panic(fmt.Errorf("failed to get user's codebase: %w", err))
fmt.Println(fmt.Errorf("failed to get user's codebase: %w", err))

os.Exit(2)
}

mod := module.Build(formattedName, codebase)
Expand Down

0 comments on commit 9d0fc64

Please sign in to comment.