Skip to content

Commit 6bd2b50

Browse files
committed
error message patch for identity method not implemented
1 parent 38536e3 commit 6bd2b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/Api/TwimlAppController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function getCapabilityToken(Request $request)
141141
$ex = new IdentityMethodNotImplementedException();
142142

143143
// not an API route
144-
return response()->json($ex, 500);
144+
return response()->json(['message' => $ex->getMessage()], 500);
145145
}
146146

147147
$clientToken = new ClientToken(config('services.twilio.account_sid'), config('services.twilio.auth_token'));

0 commit comments

Comments
 (0)