Skip to content

Commit

Permalink
Merge pull request #1028 from golemfactory/mgordel/fix-error-handling…
Browse files Browse the repository at this point in the history
…-exe-unit-creation

fix(resource-rental): fixed error handling when creating an exe-unit
  • Loading branch information
grisha87 authored Jul 15, 2024
2 parents 418a661 + cb16e9d commit 338ed1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resource-rental/resource-rental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export class ResourceRental {
) {
this.networkNode = this.resourceRentalOptions?.networkNode;

this.createExeUnit(this.abortController.signal);
this.createExeUnit(this.abortController.signal).catch((error) =>
this.logger.debug(`Failed to automatically create the exe unit during resource rental initialization`, { error }),
);
// TODO: Listen to agreement events to know when it goes down due to provider closing it!
}

Expand Down

0 comments on commit 338ed1c

Please sign in to comment.