Change message on unknown db type to be friendly (#17795)
authorDmytro Dzhulgakov <dzhulgakov@fb.com>
Fri, 8 Mar 2019 18:36:29 +0000 (10:36 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 8 Mar 2019 18:46:24 +0000 (10:46 -0800)
commita60fadfb716a6c64785c84adae48a170054cd9ac
tree2a8bf4d0debe3fb61eace6ce8204f669bb345b72
parent667763a63add80ac136dc5c138d6f79509744643
Change message on unknown db type to be friendly (#17795)

Summary:
CreateDB actually returns nullptr when db type is unknown and throws when the file is missing
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17795

Reviewed By: ezyang

Differential Revision: D14383226

Pulled By: dzhulgakov

fbshipit-source-id: 1dcf75a6b4ba8b64a24d4e5daf02db3189d56b7b
caffe2/core/db.h
caffe2/operators/load_save_op.h