Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
ignore errors that occur when getting the config in the fetch and com…
Browse files Browse the repository at this point in the history
…pile route
  • Loading branch information
eggplantzzz committed Jun 7, 2023
1 parent 9fde9e3 commit c05c8fe
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/dashboard/lib/DashboardServer.ts
Expand Up @@ -106,12 +106,8 @@ export class DashboardServer {
let config;
try {
config = Config.detect();
} catch (error) {
const notFound = "Could not find suitable configuration file.";
if (!error.message.includes(notFound)) {
throw error;
}
}
// we'll ignore errors as we only get the config for the api key
} catch {}

// a key provided in the browser takes precedence over on in the config
let etherscanKey: undefined | string;
Expand Down

0 comments on commit c05c8fe

Please sign in to comment.