Skip to content

Commit

Permalink
#46 better exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 19, 2024
1 parent c5f0188 commit 0872d06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pgtk/liquibase_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def run
)
raise "YAML at #{yaml} is missing 'pgsql' section" unless yml['pgsql']
pom = File.expand_path(File.join(__dir__, '../../resources/pom.xml'))
raise "Liquibase master is absent at #{@master}" unless File.exist?(@master)
unless File.exist?(@master)
raise "Liquibase master is absent at '#{@master}', which points to '#{File.realpath(@master)}'. \
More about this file you can find in Liquibase documentation: \
https://docs.liquibase.com/concepts/changelogs/xml-format.html"
end
@master = File.expand_path(@master)
Dir.chdir(File.dirname(@master)) do
system(
Expand Down

0 comments on commit 0872d06

Please sign in to comment.