Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 98d3b26

Browse files
author
Nick Litwin
committed
Handle case with no data
1 parent 8a64052 commit 98d3b26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/blocks/logger/logger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ import angular from 'angular'
2727

2828
function error(message, data, title) {
2929
if (data) {
30-
var err = `${message} ${JSON.stringify(data)}`
30+
message = `${message} ${JSON.stringify(data)}`
3131
}
3232

33-
$log.error(err)
33+
$log.error(message)
3434

3535
if (window.NREUM) {
36-
window.NREUM.noticeError(err)
36+
window.NREUM.noticeError(message)
3737
}
3838
}
3939

0 commit comments

Comments
 (0)