From: Matthijs Kooijman Date: Thu, 29 Jan 2009 16:42:42 +0000 (+0100) Subject: Improve error message for createSignalAssignments. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=55dbd3dcc8a8e6b9b5718be9e4da61a8ab031a72;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Improve error message for createSignalAssignments. --- diff --git a/Translator.hs b/Translator.hs index 29cf148..6fa043c 100644 --- a/Translator.hs +++ b/Translator.hs @@ -478,6 +478,9 @@ createSignalAssignments (Signal dst) (Signal src) = createSignalAssignments (Tuple dsts) (Tuple srcs) = concat $ zipWith createSignalAssignments dsts srcs +createSignalAssignments dst src = + error $ "Non matching source and destination: " ++ show dst ++ "\nand\n" ++ show src + data SignalNameMap t = Tuple [SignalNameMap t] | Signal t