Home

tailwind-ctp-intellisense @93405340aa882efccc6ac0ad68d8b4a6039809d1 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-intellisense / src / lsp / util / formatError.ts
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// https://github.com/vscode-langservers/vscode-json-languageserver/blob/master/src/utils/runner.ts
export function formatError(message: string, err: any): string {
  if (err instanceof Error) {
    let error = <Error>err
    return `${message}: ${error.message}\n${error.stack}`
  } else if (typeof err === 'string') {
    return `${message}: ${err}`
  } else if (err) {
    return `${message}: ${err.toString()}`
  }
  return message
}