lib/isomorfeus/preact/config.rb in isomorfeus-preact-10.5.3 vs lib/isomorfeus/preact/config.rb in isomorfeus-preact-10.5.4
- old
+ new
@@ -140,17 +140,15 @@
end
end
class << self
def raise_error(error: nil, error_class: nil, message: nil, stack: nil)
- error_class = error.class unless error == nil
+ error_class = error.class if error
error_class = RuntimeError unless error_class
execution_environment = if on_browser? then 'on Browser'
elsif on_ssr? then 'in Server Side Rendering'
elsif on_server? then 'on Server'
- elsif on_mobile? then 'on Mobile'
- elsif on_database? then 'on Database'
else
'on Client'
end
if error
message = error.message