Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tag import-fields: make error handling more robust
Some database types' set_slice do not eval, and thus do not reliably set $@ so we should clear it first. Include $@ if it is set. This is still messy, because an unrelated eval in set_slice or something it calls could leave a bogus error, but without rewriting every set_slice completely, this is the best we can do. The set_slice method returns undef on failure or a new key on success, so check for that instead.
- Loading branch information