From b66c4118ac3d2f9954e6beb9e522ce7b273f2bd0 Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Mon, 25 Sep 2017 01:09:30 +0200 Subject: [PATCH] slightly improve error message --- src/app/Fake.Core.Target/Target.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/Fake.Core.Target/Target.fs b/src/app/Fake.Core.Target/Target.fs index 2e311b4f25f..664571ec280 100644 --- a/src/app/Fake.Core.Target/Target.fs +++ b/src/app/Fake.Core.Target/Target.fs @@ -537,7 +537,10 @@ module Target = let targets = errors |> Seq.map (fun e -> e.Target) |> Seq.distinct let targetStr = String.Join(", ", targets) AggregateException( - sprintf "Targets '%s' failed." targetStr, + (if errors.Length = 1 then + sprintf "Target '%s' failed." targetStr + else + sprintf "Targets '%s' failed." targetStr), errors |> Seq.map (fun e -> e.Error)) |> raise