Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently the errors are not very clear. For example: ``` StackMaster::TemplateCompiler::TemplateCompilationFailed Failed to compile elasticsearch_snapshot_bucket.rb Caused by: ArgumentError wrong number of arguments (given 2, expected 1) ``` which doesn't provide the location for the issue in the template. Instead of the all-or-nothing, if `--trace` is not provided, show the first 4 lines of the original exception: ``` Caused by: ArgumentError wrong number of arguments (given 2, expected 1) at /Users/viraptor/.asdf/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/sparkle_formation-3.0.40/lib/sparkle_formation/sparkle_attribute/aws.rb:93:in `_cf_ref' ../templates/elasticsearch_snapshot_bucket.rb:62:in `block (3 levels) in compile' /Users/viraptor/.asdf/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/attribute_struct-0.4.4/lib/attribute_struct/attribute_struct.rb:245:in `instance_exec' /Users/viraptor/.asdf/installs/ruby/3.3.1/lib/ruby/gems/3.3.0/gems/attribute_struct-0.4.4/lib/attribute_struct/attribute_struct.rb:245:in `method_missing' ... Use --trace to view backtrace ```
- Loading branch information