lib/ffi/libfuse/adapter/safe.rb in ffi-libfuse-0.0.1.rctest12 vs lib/ffi/libfuse/adapter/safe.rb in ffi-libfuse-0.1.0.rc20220550
- old
+ new
@@ -46,10 +46,10 @@
result
rescue SystemCallError => e
-e.errno
rescue StandardError, ScriptError => e
# rubocop:disable Layout/LineLength
- warn "FFI::libfuse error in callback #{fuse_method}: #{e.class.name}: #{e.message}\n\t#{e.backtrace.join("\n\t")}"
+ warn ["FFI::Libfuse error in #{fuse_method}", *e.backtrace.reverse, "#{e.class.name}:#{e.message}"].join("\n\t")
# rubocop:enable Layout/LineLength
-Errno::ENOTRECOVERABLE::Errno
end
end
end