split out the two cases with diff messages and add an error code
for #630 and ceylon/ceylon-ide-eclipse#517