more helpful logging for source errors