File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -313,13 +313,16 @@ component {
313313 if (structKeyExists (arguments , " userMetadata" )) body [" user_metadata" ] = arguments .userMetadata ;
314314 if (structKeyExists (arguments , " appMetadata" )) body [" app_metadata" ] = arguments .appMetadata ;
315315 if (structKeyExists (arguments , " username" )) body [" username" ] = arguments .username ;
316-
317- var result = makeRequest (
318- method = " PATCH" ,
319- endpoint = " /api/v2/users/#arguments .userID #" ,
320- body = body ,
321- token = token
322- );
316+ try {
317+ var result = makeRequest (
318+ method = " PATCH" ,
319+ endpoint = " /api/v2/users/#arguments .userID #" ,
320+ body = body ,
321+ token = token
322+ );
323+ } catch (any e ) {
324+ return deserializeJSON (e .Detail );
325+ }
323326
324327 return result ;
325328 }
You can’t perform that action at this time.
0 commit comments