diff --git a/source/dub/commandline.d b/source/dub/commandline.d index f4a3447..60dc67d 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -1078,8 +1078,9 @@ logInfo("%s", output); throw new DustmiteMismatchException; } - - enforceEx!DustmiteMatchException(code_match == int.min && code == 0); + + if (code_match != int.min && code != 0) + throw new DustmiteMatchException; }; }