Change error handling to properly populate string from printf parameters
Merge pull request #64 from DaMouse404/error-state-printf

Change error handling to properly populate string from printf parameters