Skip to content

Commit e7aa772

Browse files
committed
array.d: replace Error with assert()
1 parent b84477b commit e7aa772

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

std/array.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ private auto arrayAllocImpl(bool minimallyInitialized, T, I...)(I sizes) nothrow
941941
ret ~= E.init;
942942
}
943943
catch (Exception e)
944-
throw new Error(e.msg);
944+
assert(0, e.msg);
945945
}
946946
else
947947
assert(0, "No postblit nor default init on " ~ E.stringof ~

0 commit comments

Comments
 (0)