Skip to content

Commit

Permalink
Improve error message when local psql command cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
will committed Apr 7, 2022
1 parent cafe79d commit cafed23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `cb restart` command added to restart clusters.
- `cb rename` command added to rename clusters.

### Changed
* Improved error message when local psql command cannot be found.

## [1.1.0] - 2022-01-27
### Added
- `cb psql` can take `--database` to specify the name of the database to
Expand Down
2 changes: 2 additions & 0 deletions src/cb/psql.cr
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class CB::Psql < CB::Action
"PGSSLMODE" => "verify-ca",
"PGSSLROOTCERT" => cert_path,
})
rescue e : File::NotFoundError
raise Error.new "The local psql command could not be found"
end

def database=(str : String)
Expand Down

0 comments on commit cafed23

Please sign in to comment.