Is there a way to get a message when the code attempts to subscribe when no corresponding publish exists?
Pass an on error callback to Meteor.subscribe
.
1 Like
To be specific, you need to pass an onStop
callback:
Meteor.subscribe('non-existant', {
onStop(reason) { console.error(reason) },
onReady() { console.log('success') },
});
1 Like