Skip to content

Commit 464d3c1

Browse files
authored
Merge pull request #1557 from Esri/prev8048-deploy-error-handler
add early catch for non string for deploy error handler
2 parents 0cc72d9 + 62373c2 commit 464d3c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/deployer/src/deployer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,14 @@ export async function deploySolution(
120120
},
121121
)
122122
.catch((ex) => {
123-
deployCatchHandler(ex, authentication);
123+
if (typeof ex === "string") {
124+
deployCatchHandler(ex, authentication);
125+
}
124126
throw ex;
125127
});
126128
}
127129

128-
export function deployCatchHandler(ex: any, authentication: common.UserSession) {
130+
export function deployCatchHandler(ex: string, authentication: common.UserSession) {
129131
const options: common.IDeleteSolutionOptions = {
130132
consoleProgress: true,
131133
sendToRecycling: false,

0 commit comments

Comments
 (0)