diff options
-rw-r--r-- | bpkg/fetch-git.cxx | 8 | ||||
-rw-r--r-- | bpkg/manifest-utility.cxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/bpkg/fetch-git.cxx b/bpkg/fetch-git.cxx index 15d83d1..cd5d597 100644 --- a/bpkg/fetch-git.cxx +++ b/bpkg/fetch-git.cxx @@ -1442,14 +1442,14 @@ namespace bpkg origin_url (co, fsdir, url); } } - catch (const invalid_argument& e) + catch (const invalid_path& e) { - fail << "invalid repository URL for submodule '" << psd << "': " + fail << "invalid repository path for submodule '" << psd << "': " << e << endg; } - catch (const invalid_path& e) + catch (const invalid_argument& e) { - fail << "invalid repository path for submodule '" << psd << "': " + fail << "invalid repository URL for submodule '" << psd << "': " << e << endg; } diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx index 484ba32..c329108 100644 --- a/bpkg/manifest-utility.cxx +++ b/bpkg/manifest-utility.cxx @@ -131,14 +131,14 @@ namespace bpkg dr << endf; } } - catch (const invalid_argument& e) - { - fail << "invalid repository location '" << s << "': " << e << endf; - } catch (const invalid_path& e) { fail << "invalid repository path '" << s << "': " << e << endf; } + catch (const invalid_argument& e) + { + fail << "invalid repository location '" << s << "': " << e << endf; + } catch (const system_error& e) { fail << "failed to guess repository type for '" << s << "': " << e << endf; |