show error message when wrong workflow id (#3474)
This commit is contained in:
1 parent
0a336df162
commit
c500952dca
2 files changed
+21
-8
No files matched your search
@@ -82,6 +82,11 @@ export const workflowsRouter = createProtectedRouter()
|
||||
},
|
||||
},
|
||||
});
|
||||
if (!workflow) {
|
||||
throw new TRPCError({
|
||||
code: "UNAUTHORIZED",
|
||||
});
|
||||
}
|
||||
return workflow;
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user