Skip to content

Commit d081dcd

Browse files
author
himaniraghav3
committed
PM-228 Fix system information leak
1 parent 38e5efd commit d081dcd

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

scripts/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ process.on('unhandledRejection', err => {
1010
// Ensure environment variables are read.
1111
require('../config/env')
1212

13-
console.log(`Build script is run with FILE_PICKER_API_KEY=${process.env.FILE_PICKER_API_KEY}`)
13+
console.log(`Build script is run`)
1414

1515
const path = require('path')
1616
const chalk = require('chalk')
@@ -115,7 +115,7 @@ checkBrowsers(paths.appPath, isInteractive)
115115
)
116116
.catch(err => {
117117
if (err && err.message) {
118-
console.error(err.message)
118+
console.error('An unexpected error occurred while build')
119119
}
120120
process.exit(1)
121121
})

scripts/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ checkBrowsers(paths.appPath, isInteractive)
112112
})
113113
.catch(err => {
114114
if (err && err.message) {
115-
console.error(err.message)
115+
console.error('An error occurred while starting the development server')
116116
}
117117
process.exit(1)
118118
})

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ app.get('/*', (req, res) => res.sendFile(path.join(__dirname, 'build', 'index.ht
4040
const port = process.env.PORT || 3000
4141
app.listen(port)
4242

43-
console.log(`App is listening on port ${port}`)
43+
console.log(`App is now listening...`)

src/components/ChallengeEditor/Description-Field/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ class DescriptionField extends Component {
782782
}).then(res => {
783783
onload(res)
784784
}).catch(err => {
785-
console.log(err)
785+
console.log('An unexpected error occured while uploading image')
786786
onerror()
787787
})
788788
}

src/routes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Routes extends React.Component {
9494
getFreshToken().then((token) => {
9595
this.props.saveToken(token)
9696
}).catch((error) => {
97-
console.error(error)
97+
console.error('An unexpected error occurred while getting auth token')
9898
const redirectBackToUrl = window.location.origin + this.props.location.pathname
9999
window.location = ACCOUNTS_APP_LOGIN_URL + '?retUrl=' + redirectBackToUrl
100100
})

src/services/axiosWithAuth.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const getToken = () => {
1818
resolve(token)
1919
})
2020
.catch((err) => {
21-
console.error(err)
21+
console.error('Error getting auth token')
2222
reject(err)
2323
})
2424
}
@@ -40,7 +40,7 @@ axiosInstance.interceptors.request.use(config => {
4040
return config
4141
})
4242
.catch((err) => {
43-
console.error(err)
43+
console.error('An unexpected error occured while retrieving the auth token.')
4444
const redirectBackToUrl = window.location.origin
4545
window.location = ACCOUNTS_APP_LOGIN_URL + '?retUrl=' + redirectBackToUrl
4646
})

0 commit comments

Comments
 (0)