flashsv: Return more meaningful error values.