Skip to content

Commit

Permalink
Update New-HuduAssetLayout.ps1
Browse files Browse the repository at this point in the history
changed Write-Error/break to throw
  • Loading branch information
greenlighttec authored Jun 30, 2024
1 parent 3a6539b commit b15f6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HuduAPI/Public/New-HuduAssetLayout.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function New-HuduAssetLayout {
'link' { $field.'field_type' = 'Website' }
'password' { $field.'field_type' = 'Password' }
'confidentialtext' { $field.'field_type' = 'Password' }
Default { Write-Error "Invalid field type: $($field.'field_type') found in field $($field.name)"; break }
Default { throw "Invalid field type: $($field.'field_type') found in field $($field.name)" }
}
}

Expand Down

0 comments on commit b15f6bd

Please sign in to comment.