Skip to content

Commit

Permalink
Improve the error messages when mmv1 compilation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
roaks3 committed Mar 13, 2024
1 parent ec1164c commit 440b618
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mmv1/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@
)
resource.validate
resources.push(resource)
rescue StandardError => e
Google::LOGGER.error "Failed to compile #{file_path}: #{e}"
raise e
end

if override_dir
Expand Down Expand Up @@ -221,6 +224,9 @@
)
resource.validate
resources.push(resource)
rescue StandardError => e
Google::LOGGER.error "Failed to compile using override #{override_path}: #{e}"
raise e
end
end
resources = resources.sort_by(&:name)
Expand Down

0 comments on commit 440b618

Please sign in to comment.