mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-15 05:02:24 +08:00
add error handling
This commit is contained in:
parent
ee01dad73a
commit
205e5fa79d
@ -7,8 +7,12 @@ const uploadBench = async () => {
|
||||
// const data = {} as Record<string, any>;
|
||||
await Promise.all(
|
||||
keys.map(async (key) => {
|
||||
const val = await loadBench({ key, rootDir: CODE_DIRECTORY });
|
||||
console.log({ key, val });
|
||||
try {
|
||||
const val = await loadBench({ key, rootDir: CODE_DIRECTORY });
|
||||
console.log({ key, val });
|
||||
} catch (err) {
|
||||
console.log(`Failed to load bench for the key ${key}:`, err);
|
||||
}
|
||||
})
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user