Open
Description
As discussed in PR #3304 (comment), @akshatnema agreed to improve the error handling by throwing errors directly instead of using Promise.reject(e);
in the build-dashboard.js
script.
We should update the error handling code to throw errors directly, making the asynchronous functions more idiomatic and easier to read.