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.
1 parent 6e6396f commit 5e15775Copy full SHA for 5e15775
src/registry/index.ts
@@ -45,7 +45,10 @@ export default function registry(inputOptions: Input) {
45
};
46
47
const start = async (
48
- callback: Callback<{ app: express.Express; server: http.Server }>
+ callback: (
49
+ err: unknown,
50
+ data: { app: express.Express; server: http.Server }
51
+ ) => void
52
) => {
53
// eslint-disable-next-line no-console
54
const ok = (msg: string) => console.log(colors.green(msg));
@@ -98,7 +101,7 @@ export default function registry(inputOptions: Input) {
98
101
callback(error, undefined as any);
99
102
});
100
103
} catch (err) {
- callback(err as Error, undefined as any);
104
+ callback((err as any)?.msg || err, undefined as any);
105
}
106
107
0 commit comments