Skip to content

Commit 87c4a45

Browse files
rahul-deepsourcedolftax
authored andcommitted
create a new err on the fly
1 parent dc25d82 commit 87c4a45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

init.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ func run() int {
110110

111111
// Check for valid protocol
112112
if strings.HasPrefix(dsnSplitProtocolBody[0], "http") == false {
113-
errMessage := "DeepSource | Error | DSN specified should start with http(s). Cross verify DEEPSOURCE_DSN value against the settings page of the repository."
114-
fmt.Println(errMessage)
115-
sentry.CaptureException(errors.New(errMessage))
113+
err = errors.New("DeepSource | Error | DSN specified should start with http(s). Cross verify DEEPSOURCE_DSN value against the settings page of the repository.")
114+
fmt.Println(err)
115+
sentry.CaptureException(err)
116116
return 1
117117
}
118118
dsnProtocol := dsnSplitProtocolBody[0]

0 commit comments

Comments
 (0)