5 lines
177 B
TypeScript
5 lines
177 B
TypeScript
export const guessProblem = (errorMessage: string) => {
|
|
if (errorMessage.endsWith('Socket error: ECONNREFUSED')) {
|
|
return 'Most probably the server is not running.'
|
|
}
|
|
}
|