Skip to content

Commit 21ad0ce

Browse files
committed
more log stmts
1 parent 5ef89a8 commit 21ad0ce

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/dt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,10 @@ func extractDtArgs(cmd *cobra.Command, args []string) (*dt.Params, error) {
164164
if _, err := uuid.Parse(output); err == nil {
165165
aParams.Upload = true
166166
aParams.UploadProjectID = uuid.MustParse(output)
167-
fmt.Printf("Upload: %v and SBOM to Project ID: %v \n", aParams.Upload, aParams.UploadProjectID)
168167
} else {
169168
// Assume it's a file path
170169
aParams.Output = output
171170
aParams.Upload = false
172-
fmt.Printf("Upload: %v and SBOM to Project ID: %v \n", aParams.Upload, aParams.Output)
173171
}
174172

175173
for _, arg := range args {

pkg/dt/dt_interface.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ func (dtP *Params) PopulateInputField(ctx context.Context) {
5656

5757
prj, err := dTrackClient.Project.Get(ctx, pid)
5858
if err != nil {
59-
log.Fatalln("Failed to get project: %s", err)
59+
log.Infof("Failed to get project, Check projectID or API port or Hostname.")
60+
log.Fatalf("Failed to get project: %s", err)
6061
}
6162
log.Debugf("ID: %s, Name: %s, Version: %s", prj.UUID, prj.Name, prj.Version)
6263

0 commit comments

Comments
 (0)