-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs and return a better error message
- Loading branch information
Brian Kassouf
committed
May 4, 2017
1 parent
55f1f51
commit 886f873
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ func (b *databaseBackend) createDBObj(s logical.Storage, name string) (dbplugin. | |
func (b *databaseBackend) DatabaseConfig(s logical.Storage, name string) (*DatabaseConfig, error) { | ||
entry, err := s.Get(fmt.Sprintf("config/%s", name)) | ||
if err != nil { | ||
return nil, fmt.Errorf("failed to read connection configuration with name: %s", name) | ||
return nil, fmt.Errorf("failed to read connection configuration: %s", err) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
briankassouf
Contributor
|
||
} | ||
if entry == nil { | ||
return nil, fmt.Errorf("failed to find entry for connection with name: %s", name) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Would it make sense to include
name
as well (i.e.failed to read connection configuration: name: %s err: %s
)?