Skip to content

Commit

Permalink
Minor fix in mcm connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Kumar committed Oct 16, 2020
1 parent 25735a6 commit ac3236a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/configuration-providers/mb-connection-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ const initEnvironment = async () => {
if (createEnvResponse.status === 200) {
currentEnvironment = createEnvResponse.data
} else {
throw new Error('Some error creating environment - ', createEnvResponse)
throw new Error('Some error creating environment - ' + JSON.stringify(createEnvResponse))
}
} catch (err) {
throw new Error('Some error creating environment - ', err)
throw new Error('Some error creating environment - ' + err.message)
}
}
}
Expand Down Expand Up @@ -508,7 +508,7 @@ const initDFSPHelper = async () => {
}

const auth = async (user) => {
const userConfig = Config.getUserConfig(user)
const userConfig = await Config.getUserConfig(user)
const loginFormData = {
username: userConfig.CONNECTION_MANAGER_HUB_USERNAME,
password: userConfig.CONNECTION_MANAGER_HUB_PASSWORD
Expand Down

0 comments on commit ac3236a

Please sign in to comment.