Browse Source

chore: add log

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
4f3dfd3112
  1. 5
      packages/nocodb-nest/src/modules/test/TestResetService/index.ts

5
packages/nocodb-nest/src/modules/test/TestResetService/index.ts

@ -21,6 +21,11 @@ const loginRootUser = async () => {
return response.data.token; return response.data.token;
} catch (e) { } catch (e) {
console.log('Error in loginRootUser', e)
let msg = e.response?.data?.msg || e.response?.data?.message || 'Some internal error occurred'
let errors = e.response?.data?.errors
console.log('msg', msg)
console.log('errors', errors)
const response = await axios.post( const response = await axios.post(
'http://localhost:8080/api/v1/auth/user/signup', 'http://localhost:8080/api/v1/auth/user/signup',
{ email: 'user@nocodb.com', password: 'Password123.' }, { email: 'user@nocodb.com', password: 'Password123.' },

Loading…
Cancel
Save