compiler/libec: (#1072) Fixed error conditions