Skip to content

Commit a40ea09

Browse files
authored
Merge pull request #51 from wildjames/dev
more informative error message
2 parents 0976da6 + 21e88af commit a40ea09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

todoqueue_frontend/src/api/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export const signUp = async (email, username, password) => {
188188
}
189189
else {
190190
console.log("Error during registration:", res);
191-
return {"error": "Error during registration."};
191+
return {"error": res.data.detail};
192192
}
193193

194194
} catch (error) {

0 commit comments

Comments
 (0)