         ret = callback block
         return block if ret
       catch e
+        log.errors "#{@treeId} #{@} getItem resulted in %s", e.message
+        if e instanceof chai.AssertionError
+          log.asserts "#{@treeId} #{@} getItem resulted in %s", e.message
         continue
     null
 

debug = require 'debug'
log =
  subleaf: debug 'subleaf'

class Choice


        ret = callback item
        return item if ret
      catch e
        log.errors "#{@treeId} #{@} getItem resulted in %s", e.message
        if e instanceof chai.AssertionError
          log.asserts "#{@treeId} #{@} getItem resulted in %s", e.message
        continue
    null

