mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Handle malformed optional benchmark summaries
This commit is contained in:
@@ -778,7 +778,11 @@ jobs:
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(path, 'utf8'));
|
||||
} catch (error) {
|
||||
throw new Error(`Invalid benchmark summary ${path}: ${error.message}`);
|
||||
if (required) {
|
||||
throw new Error(`Invalid benchmark summary ${path}: ${error.message}`);
|
||||
}
|
||||
console.error(`Invalid benchmark summary ${path}: ${error.message}`);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user