mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 17:35:35 +08:00
Show original options when an error happens while importing an user
This commit is contained in:
parent
bbf542da01
commit
5f2fb0fe33
@ -283,6 +283,7 @@ class ImportScripts::Base
|
||||
end
|
||||
|
||||
def create_user(opts, import_id)
|
||||
original_opts = opts.dup
|
||||
opts.delete(:id)
|
||||
merge = opts.delete(:merge)
|
||||
post_create_action = opts.delete(:post_create_action)
|
||||
@ -360,7 +361,7 @@ class ImportScripts::Base
|
||||
u = existing
|
||||
end
|
||||
else
|
||||
puts "Error on record: #{opts.inspect}"
|
||||
puts "Error on record: #{original_opts.inspect}"
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user