Skip to content

Commit

Permalink
Fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Sep 27, 2024
1 parent 88ce7ac commit cafc9cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ export class ResolvedEngine<T extends Engine = Engine> {
if (resolved) break
}

if (!resolved) error(`The specified engine has not resolved.`)
if (!resolved)
error(
`The specified engine has not resolved. (Try "--debug=true" to see more details)`
)

return resolved
}

Expand Down
4 changes: 1 addition & 3 deletions src/marp-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,11 @@ export const waitForObservation = () =>
export const apiInterface = (argv: string[], opts: MarpCLIAPIOptions = {}) =>
marpCli(argv, { ...opts, stdin: false, throwErrorAlways: true })

export const cliInterface = (argv: string[], opts: MarpCLICLIOptions = {}) => {
export const cliInterface = (argv: string[]) => {
if (process.env.DEBUG) {
cli.info(
`Debug logging is enabled. (Filter pattern: ${chalk.yellow(process.env.DEBUG)})`
)
}
return marpCli(argv, { stdin: true, throwErrorAlways: false })
}

export default cliInterface

0 comments on commit cafc9cc

Please sign in to comment.