From 8642eb54df3abf0a35813df4f5133ff4330f8cf2 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Thu, 21 Mar 2024 12:05:09 +0000
Subject: [PATCH] Clarify error message

---
 src/containers/linearise.jl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/containers/linearise.jl b/src/containers/linearise.jl
index 79f0658..c31fb78 100644
--- a/src/containers/linearise.jl
+++ b/src/containers/linearise.jl
@@ -42,7 +42,7 @@ function SequencePart(sequence::BaseSequence{N}, time1::Number, time2::Number) w
         time2 = duration(sequence)
     end
     if !(0 <= time1 <= time2 <= duration(sequence))
-        error("Sequence timings are out of bound")
+        error("Initial time ($time1) and final time ($time2) are not part of the same TR.")
     end
     for key in 1:N
         if (end_time(sequence, key) > tmean)
@@ -59,7 +59,6 @@ function SequencePart(bb::BaseBuildingBlock, time1::Number, time2::Number)
         time2 = duration(bb)
     end
     if !(0 <= time1 <= time2 <= duration(bb))
-        @show bb time1 time2 duration(bb)
         error("Sequence timings are out of bound")
     end
 
-- 
GitLab