should pass error, not string