Standardise errors and warnings