Skip to content

Commit

Permalink
fix(module): throw error if scheme is not defined (#652)
Browse files Browse the repository at this point in the history
* fix(module): throw error if scheme is not defined

* refactor(module): update error message
  • Loading branch information
JoaoPedroAS51 committed Apr 29, 2020
1 parent 3584020 commit 61fb4dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module/resolve.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable import/namespace */
import { existsSync } from 'fs'
import consola from 'consola'
import * as providers from '../providers'

const logger = consola.withScope('nuxt:auth')
const builtInSchemes = [
'local',
'cookie',
Expand Down Expand Up @@ -75,7 +77,7 @@ export function resolveScheme (nuxt, scheme) {
return path
}
} catch (e) {
// Ignore
logger.fatal(`Scheme ${scheme} wasn't found!`)
}
}

Expand Down

0 comments on commit 61fb4dc

Please sign in to comment.