Skip to content

Commit a246d9e

Browse files
author
cx-Margarita-LevitM
committed
Fix bug number AST-115497
1 parent e92984a commit a246d9e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/services/realtimeengine/common.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package realtimeengine
33
import (
44
"os"
55

6-
errorconstants "github.com/checkmarx/ast-cli/internal/constants/errors"
76
"github.com/checkmarx/ast-cli/internal/params"
87
"github.com/checkmarx/ast-cli/internal/wrappers"
98
"github.com/pkg/errors"
@@ -37,7 +36,7 @@ func EnsureLicense(jwtWrapper wrappers.JWTWrapper) error {
3736
if aiAllowed || assistAllowed {
3837
return nil
3938
}
40-
return errors.Wrap(err, errorconstants.NoASCALicense)
39+
return errors.New("User has a valid license for AI Protection or Checkmarx One Assist")
4140
}
4241

4342
// ValidateFilePath validates that the file path exists and is accessible.

0 commit comments

Comments
 (0)