Skip to content

Commit

Permalink
chore: fix typo in logs (#816)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Sep 27, 2023
1 parent b81f871 commit 1ffc951
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (c colimaApp) SSH(layer bool, args ...string) error {
return fmt.Errorf("not a mounted directory: %s", workDir)
}(); err != nil {
// the errors returned here is not critical and thereby silenced.
// the goal is to prevent unecessary warning message from Lima.
// the goal is to prevent unnecessary warning message from Lima.
log.Trace(fmt.Errorf("error checking if PWD is mounted: %w", err))

// fallback to the user's homedir
Expand Down
4 changes: 2 additions & 2 deletions daemon/process/inotify/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (f *inotifyProcess) monitorContainerVolumes(ctx context.Context, c chan<- [
for {
select {
case <-ctx.Done():
log.Trace("stop signal recieved")
log.Trace("stop signal received")
err := ctx.Err()
if err != nil {
log.Trace(fmt.Errorf("error during stop: %w", err))
Expand Down Expand Up @@ -120,7 +120,7 @@ func omitChildrenDirectories(dirs []string) []string {

omitted := map[int]struct{}{}
for i := 0; i < len(dirs); i++ {
// if the index is ommitted, skip
// if the index is omitted, skip
if _, ok := omitted[i]; ok {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion daemon/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (p processDeps) Install(host environment.HostActions) error {
for _, d := range deps {
if !d.Installed() {
if err := d.Install(host); err != nil {
return fmt.Errorf("error occured installing dependencies for '%s': %w", process.Name(), err)
return fmt.Errorf("error occurred installing dependencies for '%s': %w", process.Name(), err)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion environment/vm/lima/lima.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (l *limaVM) startDaemon(ctx context.Context, conf config.Config) (context.C
// check if inotify is running
if conf.MountINotify {
if inotifyEnabled, _ := ctx.Value(ctxKeyInotify).(bool); !inotifyEnabled {
log.Warnln("error occured enabling inotify daemon")
log.Warnln("error occurred enabling inotify daemon")
}
}

Expand Down

0 comments on commit 1ffc951

Please sign in to comment.