async function withLog(haystack, fn) {
	try {
		await fn();
	} catch (err) {
		// eslint-disable-next-line no-console
		console.log(haystack.join('\n'));
		throw err;
	}
}
Print haystack when `fn` throws
@param {string[]} haystack
@param {() => any} fn