Skip to content

Commit

Permalink
fix: first error details element might be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Dec 3, 2024
1 parent 289ca3e commit 894ff92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ and all Dash service ports listed above.`);
// Get the error message from details if it exists
if (e.type === 'domain_control_validation_failed' && e.details[ctx.externalIp]) {
const errorDetails = Object.values(e.details[ctx.externalIp])[0];
if (errorDetails.error) {
if (errorDetails?.error) {
errorMessage = errorDetails.error_info;
}
}
Expand Down

0 comments on commit 894ff92

Please sign in to comment.