Add dynamic error message

Prior to this commit we did not pull the error message