Skip to content

Commit 4204111

Browse files
authored
Support missing payload message (#173)
1 parent fef1c6a commit 4204111

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rails_panel/assets/javascripts/filters.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ angular.module('RailsPanel', [])
4848
return function(input) {
4949
return ansi2html(input);
5050
}
51+
})
52+
.filter('toString', function() {
53+
return function(input) {
54+
return input || "";
55+
}
5156
});

rails_panel/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
<tbody>
233233
<tr ng-repeat="log in activeLog()">
234234
<td><a href="{{log.payload.filename | editorify:log.payload.line}}">{{log.payload.filename | normalizePath}}:{{log.payload.line}}</a></td>
235-
<td ng-bind-html-unsafe="log.payload.message | sanitize | ansi2html"></td>
235+
<td ng-bind-html-unsafe="log.payload.message | toString | sanitize | ansi2html"></td>
236236
</tr>
237237
</tbody>
238238
</table>

0 commit comments

Comments
 (0)