Skip to content

Commit

Permalink
Improve the error messages when mmv1 compilation fails (GoogleCloudPl…
Browse files Browse the repository at this point in the history
  • Loading branch information
roaks3 authored and cmfeng committed Apr 5, 2024
1 parent 141a8f1 commit 623bde4
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 623bde4

Please sign in to comment.