1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff --git a/packages/tailwindcss-intellisense/src/class-names/index.js b/packages/tailwindcss-intellisense/src/class-names/index.js
index 06177bd14f57133c1098bfaabf1064c42dd7af42..2cb1b9bc54d3fb4eddc8e71b8159ac9d25fb2e82 100644
--- a/packages/tailwindcss-intellisense/src/class-names/index.js
+++ b/packages/tailwindcss-intellisense/src/class-names/index.js
@@ -17,6 +17,7 @@ import normalizePath from 'normalize-path'
import { withUserEnvironment } from './environment'
import execa from 'execa'
import { klona } from 'klona/full'
+import { formatError } from '../lsp/util/formatError'
function arraysEqual(arr1, arr2) {
return (
@@ -238,7 +239,7 @@ try {
result = await run()
console.log('Initialised successfully.')
} catch (error) {
- console.error('Failed to initialise:', error)
+ console.error(formatError('Failed to initialise:', error))
return null
}
|