coravel icon indicating copy to clipboard operation
coravel copied to clipboard

Adding a More Descriptive Exception for Invalid Driver Error

Open RaulShinaede opened this issue 2 years ago • 0 comments

When an incorrect driver type is specified in the appsettings, a generic KeyNotFound error is thrown, which can lead to confusion. Below is the result of the error:

error-coravel

To fix this, I replaced the usage of the collection in the .addMailer extension with a switch statement that throws a more descriptive exception.

error-coravel-ajust

RaulShinaede avatar Sep 16 '23 15:09 RaulShinaede