Skip to content

Commit

Permalink
Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
twavv committed Aug 10, 2021
1 parent d0a9642 commit eb5c53a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/codex/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var codexUploadCmd = &cobra.Command{
start := time.Now()
timeoutCtx, cancel := context.WithTimeout(context.Background(), 20*time.Minute)
defer cancel()
log.Info("waiting for kernel build to complete (this may take up to 20 minutes)...")
log.Info("waiting for kernel build to complete (this may take a while, please be patient!)...")
kernelStatus, err := codex.WaitForKernelBuildCompleted(
timeoutCtx,
graphql.NewClient(auth),
Expand Down Expand Up @@ -117,7 +117,7 @@ var codexUploadCmd = &cobra.Command{
log.Info("not waiting for kernel build to complete (--no-wait was set)")
}

fmt.Printf(successf("Successfully uploaded codex: %s", detailsUrl))
fmt.Println(successf("Successfully uploaded codex: %s", detailsUrl))

return nil
},
Expand Down
2 changes: 1 addition & 1 deletion internal/course/course.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func PromptCourse(courses []graphql.CourseEdge) (*graphql.Course, error) {
func PromptCodexCategory(cats []graphql.CodexCategory) (*graphql.CodexCategory, error) {
// Meow!
if len(cats) == 0 {
return nil, errors.New("course has categories")
return nil, errors.New("course has no codex categories")
}
if len(cats) == 1 {
return &cats[0], nil
Expand Down

0 comments on commit eb5c53a

Please sign in to comment.