UPDATE: Only change error value in dev mode