Skip to content

Commit

Permalink
fix(rpc): only print warning text, not error
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Feb 28, 2024
1 parent 0ef082d commit ed8cfe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rpc/src/server/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function createNoTypeError(classType: ClassType, method: string) {
}

function createNoObservableWarning(classType: ClassType, method: string) {
return new Error(`RPC action ${getClassName(classType)}.${method} returns an Observable, but no specific type (e.g. Observable<T>) or 'any | unknown' type is defined. This might lead to unexpected behavior and slow performance.`);
return `RPC action ${getClassName(classType)}.${method} returns an Observable, but no specific type (e.g. Observable<T>) or 'any | unknown' type is defined. This might lead to unexpected behavior and slow performance.`;
}

function createNoTypeWarning(classType: ClassType, method: string, value: any) {
Expand Down

0 comments on commit ed8cfe7

Please sign in to comment.