lib/bolt_server/file_cache.rb in bolt-1.4.0 vs lib/bolt_server/file_cache.rb in bolt-1.5.0

- old
+ new

@@ -104,10 +104,10 @@ File.exist?(file_path) && Digest::SHA256.file(file_path) == sha end def serial_execute(&block) promise = Concurrent::Promise.new(executor: @executor, &block).execute.wait - raise promise.reason if promise.state == :rejected + raise promise.reason if promise.rejected? promise.value end # Create a cache dir if necessary and update it's last write time. Returns the dir. # Acquires @cache_dir_mutex to ensure we don't try to purge the directory at the same time.