show correct error on createObject

the `%detail` parameter was never replaced because of a typo in the function call