Implement error primitive to enable more tests around carefully