Better build error messages on failure

ping @tailsu @teobugslayer @Fatme