Skip to content

Commit 89324e6

Browse files
yp05327lunny
andauthored
enable GetOrganizationByParams error handling
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 75a65ad commit 89324e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/context/org.go

+3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
104104
// if Organization is not defined, get it from params
105105
if ctx.Org.Organization == nil {
106106
GetOrganizationByParams(ctx)
107+
if ctx.Written() {
108+
return
109+
}
107110
}
108111

109112
org := ctx.Org.Organization

0 commit comments

Comments
 (0)