Improve error message

This commit is contained in:
Kimmo Puputti 2017-02-06 15:39:36 +02:00
parent 28894cd812
commit eefb2c1036

View file

@ -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,