Refactor code to allow formated function calls for the different error levels.
Refactor code to allow formated function calls for the different error levels.

materials-commons/mcstore,materials-commons/mcstore,materials-commons/mcstore