Skip to content

Commit efec7d4

Browse files
authored
fix(api_map): display more information when we don't understand why schema could not be sent (#719)
1 parent 1ba7140 commit efec7d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/forest_liana/bootstrapper.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,11 @@ def send_apimap(with_feedback=false)
318318
end
319319
rescue Errno::ECONNREFUSED, SocketError
320320
FOREST_LOGGER.warn "Cannot send the apimap to Forest. Are you online?"
321-
rescue
322-
FOREST_LOGGER.warn "Cannot send the apimap to Forest. Forest might " \
321+
rescue => error
322+
FOREST_REPORTER.report error
323+
FOREST_LOGGER.error "Cannot send the apimap to Forest (#{forest_url}). Forest might " \
323324
"currently be in maintenance."
325+
FOREST_LOGGER.error "#{error}\n#{error.backtrace.join("\n\t")}"
324326
end
325327
end
326328
end

0 commit comments

Comments
 (0)