Skip to contents

Colour the text by using the error colour

Usage

valErr_TextErrCol(text, error, addError = TRUE)

Arguments

text

to be coloured. if not supplied, the coloured error text will be returned. If text is of class dmdScheme_validation, the function will be called with text = text$header, error = text$error

error

either level, text or colour of error (see valErr_errorLevels)

addError

if the error text should be added in the front of the text.

Value

the coloured text or error text