Skip to content

Commit

Permalink
fail nsfs completely on failure
Browse files Browse the repository at this point in the history
Signed-off-by: Romy <[email protected]>
  • Loading branch information
romayalon committed Mar 3, 2024
1 parent 5491d09 commit d4264be
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 d4264be

Please sign in to comment.