Verified Commit 37e8f93b authored by Aral Balkan's avatar Aral Balkan
Browse files

Add error handling in globals to help troubleshoot production

parent 042b4875
......@@ -70,7 +70,13 @@ function globals (app) {
// Ensure that the data directory path exists as other parts of the application
// will rely on it being there.
try {
} catch (error) {
const message = `Could not ensure directory for ${dataDirectoryPath}: ${error}`
throw new Error(message)
app.set('dataDirectoryPath', dataDirectoryPath)
app.set('serverSecretFilePath', serverSecretFilePath)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment