Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Datree
Commits
21d4b0aa
Commit
21d4b0aa
authored
3 years ago
by
Roy Hadad
Browse files
Options
Download
Email Patches
Plain Diff
style: run gofmt
parent
cf5c71cd
DAT-3808_report_cli_errors
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bl/errorReporter/errorReporter.go
+2
-1
bl/errorReporter/errorReporter.go
bl/errorReporter/errorReporter_test.go
+2
-1
bl/errorReporter/errorReporter_test.go
main.go
+2
-1
main.go
with
6 additions
and
3 deletions
+6
-3
bl/errorReporter/errorReporter.go
+
2
-
1
View file @
21d4b0aa
...
...
@@ -2,11 +2,12 @@ package errorReporter
import
(
"fmt"
"runtime/debug"
"github.com/datreeio/datree/cmd"
"github.com/datreeio/datree/pkg/cliClient"
"github.com/datreeio/datree/pkg/deploymentConfig"
"github.com/datreeio/datree/pkg/localConfig"
"runtime/debug"
)
func
ReportCliError
(
panicErr
interface
{})
{
...
...
This diff is collapsed.
Click to expand it.
bl/errorReporter/errorReporter_test.go
+
2
-
1
View file @
21d4b0aa
...
...
@@ -2,11 +2,12 @@ package errorReporter
import
(
"errors"
"testing"
"github.com/datreeio/datree/cmd"
"github.com/datreeio/datree/pkg/cliClient"
"github.com/datreeio/datree/pkg/localConfig"
"github.com/stretchr/testify/assert"
"testing"
"github.com/stretchr/testify/mock"
)
...
...
This diff is collapsed.
Click to expand it.
main.go
+
2
-
1
View file @
21d4b0aa
...
...
@@ -2,10 +2,11 @@ package main
import
(
"errors"
"os"
"github.com/datreeio/datree/bl/errorReporter"
"github.com/datreeio/datree/cmd"
"github.com/datreeio/datree/cmd/test"
"os"
)
const
DEFAULT_ERR_EXIT_CODE
=
1
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help