Skip to content

Commit

Permalink
Fix #43081 - expose "Literal \n not allowed" error from ripgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Feb 7, 2018
1 parent 7432a5b commit af74ca1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/services/search/node/ripgrepTextSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ export function rgErrorMsgForDisplay(msg: string): string | undefined {
return firstLine.charAt(0).toUpperCase() + firstLine.substr(1);
}

if (strings.startsWith(firstLine, 'Literal ')) {
// e.g. "Literal \n not allowed"
return firstLine;
}

return undefined;
}

Expand Down

0 comments on commit af74ca1

Please sign in to comment.