Skip to content

Commit

Permalink
throw error with new
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyubabbar committed Jun 26, 2024
1 parent e040934 commit acb0686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/openfaas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const reconcileFunction = async (fnName) => {
await updateFunction(fnName, payload);

Check warning on line 88 in src/util/openfaas/index.js

View check run for this annotation

Codecov / codecov/patch

src/util/openfaas/index.js#L88

Added line #L88 was not covered by tests
} catch (error) {
logger.error(`Error while reconciling function ${fnName}: ${error.message}`);
throw RespStatusError(error.statusCode, error.message);
throw new RespStatusError(error.statusCode, error.message);

Check warning on line 91 in src/util/openfaas/index.js

View check run for this annotation

Codecov / codecov/patch

src/util/openfaas/index.js#L90-L91

Added lines #L90 - L91 were not covered by tests
}
};

Expand Down

0 comments on commit acb0686

Please sign in to comment.