Catch errors when resolving config and creating context
parent
ecdfc1a98e
commit
e786ece8c3
|
@ -857,6 +857,7 @@ async function createProjectService(
|
||||||
throw new SilentError(`Failed to load config file: ${state.configPath}`)
|
throw new SilentError(`Failed to load config file: ${state.configPath}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
state.config = resolveConfig.module(originalConfig)
|
state.config = resolveConfig.module(originalConfig)
|
||||||
state.separator = state.config.separator
|
state.separator = state.config.separator
|
||||||
|
|
||||||
|
@ -869,6 +870,10 @@ async function createProjectService(
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
hook.unhook()
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
|
||||||
let postcssResult: Result
|
let postcssResult: Result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue