diff --git a/source/dub/dependency.d b/source/dub/dependency.d index 02a9ef5..c02a5d8 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -260,7 +260,7 @@ auto strhash = &typeid(string).getHash; auto str = this.toString(); return strhash(&str); - } catch (Throwable) assert(false); + } catch (Exception) assert(false); } bool valid() const { diff --git a/source/dub/internal/utils.d b/source/dub/internal/utils.d index 7aa7618..e71be4e 100644 --- a/source/dub/internal/utils.d +++ b/source/dub/internal/utils.d @@ -49,7 +49,7 @@ auto fname = p ~ format("__dub_write_test_%08X", uniform(0, uint.max)); if (create_if_missing && !exists(p.toNativeString())) mkdirRecurse(p.toNativeString()); try openFile(fname, FileMode.CreateTrunc).close(); - catch (Throwable) return false; + catch (Exception) return false; remove(fname.toNativeString()); return true; } diff --git a/source/dub/internal/vibecompat/inet/path.d b/source/dub/internal/vibecompat/inet/path.d index b3cb023..6b54292 100644 --- a/source/dub/internal/vibecompat/inet/path.d +++ b/source/dub/internal/vibecompat/inet/path.d @@ -261,7 +261,7 @@ hash_t ret; auto strhash = &typeid(string).getHash; try foreach (n; nodes) ret ^= strhash(&n.m_name); - catch (Throwable) assert(false); + catch (Exception) assert(false); if (m_absolute) ret ^= 0xfe3c1738; if (m_endsWithSlash) ret ^= 0x6aa4352d; return ret;