Skip to content

Commit

Permalink
Merge pull request noobaa#7858 from romayalon/romy-fix-startup-failures
Browse files Browse the repository at this point in the history
NSFS | NC | Fail nsfs.js completely on system.json failure
  • Loading branch information
romayalon authored Mar 3, 2024
2 parents 5491d09 + d4264be commit 7d2248c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cmd/nsfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ async function init_nsfs_system(config_root) {
});
console.log('created NSFS system data with version: ', pkg.version);
} catch (err) {
console.error('failed to create NSFS system data', err);
const msg = 'failed to create NSFS system data due to - ' + err.message;
const error = new Error(msg);
console.error(msg, err);
throw error;
}
}

Expand Down

0 comments on commit 7d2248c

Please sign in to comment.