Fix detection of errors when compiling
Merge branch 'maint'

* maint:
  Fix detection of errors when compiling