Commit 28127e2
committed
Ruby TemplateEvaluationContext handles missing ERB
This change updates the exception catching in the embeded ruby script
(template_evaluation_context.rb) so that when the supplied ERB template
argument is not a file on disk the exception handling code does not
itself error.
Prior to this change if the ruby code attempted to load a non-existent
ERB template the exception handling code would fail tyring ot access the
ERB instance's `#filename` method.1 parent 6ef17f3 commit 28127e2
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments