Double pointer required as error message is dynamically allocated
Probably a good idea to alloc error message before writing to it