Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show errors with stack when DEBUG=1 #38

Merged
merged 3 commits into from
Jul 22, 2018
Merged

Show errors with stack when DEBUG=1 #38

merged 3 commits into from
Jul 22, 2018

Conversation

k1LoW
Copy link
Owner

@k1LoW k1LoW commented Jul 22, 2018

$ ./tbls doc pg://postgres:invalid@localhost:55432/testdb\?sslmode=disable .
pq: password authentication failed for user "postgres"
$ DEBUG=1 ./tbls doc pg://postgres:invalid@localhost:55432/testdb\?sslmode=disable .
pq: password authentication failed for user "postgres"
github.com/k1LoW/tbls/cmd.printError
        /Users/k1low/src/github.com/k1LoW/tbls/cmd/root.go:64
github.com/k1LoW/tbls/cmd.glob..func4
        /Users/k1low/src/github.com/k1LoW/tbls/cmd/doc.go:56
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).execute
        /Users/k1low/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:766
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).ExecuteC
        /Users/k1low/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:852
github.com/k1LoW/tbls/vendor/github.com/spf13/cobra.(*Command).Execute
        /Users/k1low/src/github.com/k1LoW/tbls/vendor/github.com/spf13/cobra/command.go:800
github.com/k1LoW/tbls/cmd.Execute
        /Users/k1low/src/github.com/k1LoW/tbls/cmd/root.go:53
main.main
        /Users/k1low/src/github.com/k1LoW/tbls/main.go:34
runtime.main
        /Users/k1low/.anyenv/envs/goenv/versions/1.10.2/src/runtime/proc.go:198
runtime.goexit
        /Users/k1low/.anyenv/envs/goenv/versions/1.10.2/src/runtime/asm_amd64.s:2361

@k1LoW k1LoW self-assigned this Jul 22, 2018
@k1LoW k1LoW merged commit a8e1cea into master Jul 22, 2018
@k1LoW k1LoW deleted the show-error-stack branch July 22, 2018 07:12
k1LoW added a commit that referenced this pull request Mar 9, 2019
Show errors with stack when `DEBUG=1`
k1LoW added a commit that referenced this pull request Apr 25, 2019
Show errors with stack when `DEBUG=1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant