lib/eco/api/common/session/file_manager.rb in eco-helpers-2.0.15 vs lib/eco/api/common/session/file_manager.rb in eco-helpers-2.0.16
- old
+ new
@@ -18,11 +18,11 @@
def dir_path=(value)
begin
@dir = Eco::Data::Files::Directory.new(value)
@dir_path = @dir.create
- rescue
- logger.error("could not create or make any sense of directory '#{value}'")
+ rescue Exception => e
+ logger.error("could not create or make any sense of directory '#{value}': #{e.to_s}")
end
end
def logger
@enviro&.logger || ::Logger.new(IO::NULL)