Fix raising piper errors