Skip to content

Commit 1c1a4a7

Browse files
committed
Log notice if no handler defined
1 parent 7c6f4b8 commit 1c1a4a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/backend.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ function Backend({
143143
}
144144

145145
function NoticeResponse(x) {
146-
onnotice(error(x))
146+
onnotice
147+
? onnotice(error(x))
148+
: console.log(error(x))
147149
}
148150

149151
function NoData(x) {

0 commit comments

Comments
 (0)