mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Improve error message
This commit is contained in:
parent
28894cd812
commit
eefb2c1036
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const mockLogin = (email, password) => new Promise((resolve, reject) => {
|
|||
// any non-empty email and password is ok
|
||||
resolve({ email, password });
|
||||
} else {
|
||||
reject(new Error('Invalid credentials'));
|
||||
reject(new Error('Invalid credentials, try a valid email and a non-empty password'));
|
||||
}
|
||||
},
|
||||
1000,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue