We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f50b173 + 526edd1 commit 4ce985aCopy full SHA for 4ce985a
server/apis/mom/block/service.ts
@@ -43,7 +43,7 @@ export const putBlock = async (
43
case BlockType.QUESTION:
44
break;
45
default:
46
- return;
+ throw new Error(`Bad type ${type} received`);
47
}
48
};
49
0 commit comments