diff --git a/src/services/pythonCliAuth.ts b/src/services/pythonCliAuth.ts index d6f0548..7ddfb64 100644 --- a/src/services/pythonCliAuth.ts +++ b/src/services/pythonCliAuth.ts @@ -167,7 +167,7 @@ class PythonCliAuth { } } - throw new Error(response.error || response.message || 'Registration failed'); + throw new Error(data?.message || 'Registration failed'); } catch (error) { console.error('Registration failed:', error); throw error;