Unverified Commit a8d43218 authored by Pavel Ševčík's avatar Pavel Ševčík
Browse files

throw fatal error

parent a3508412
......@@ -35,8 +35,7 @@ export const microAuth = (secret: NonEmptyString, whitelist?: Whitelist) => (fn:
O.fold(
() => {
// This should not happen, otherwise it's fatal error
logFatal(Error("Fatal error: pathname not provided."))();
process.exit(0);
throw logFatal(Error("Fatal error: pathname not provided."))();
},
(pathname: string) =>
pipe(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment