Skip to content

Commit

Permalink
bug #346: format/word backups-not-configured "success" message better.
Browse files Browse the repository at this point in the history
* resolves #346 as far as we've decided to do for now.
  • Loading branch information
issa-tseng committed Mar 26, 2021
1 parent 1b28b0e commit 057d419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bin/backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { initDrive, ensureDirectory, uploadFile, persistCredentials } = require('
run(emailing('backupFailed', auditing('backup', async () => {
// fetch backup config. fail early and silently unless it exists.
let config;
try { config = await getConfiguration('backups.main'); } catch (_) { return 'no backup configured'; }
try { config = await getConfiguration('backups.main'); } catch (_) { return { did: 'nothing', because: 'no backup configured' }; }
const configValue = JSON.parse(config.value);

// run the pgdump and encrypt it into a zipfile.
Expand Down

0 comments on commit 057d419

Please sign in to comment.