Skip to content
Snippets Groups Projects
Commit ca2d9be0 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(gitlab): handle ParseError

parent 7b45b3be
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,9 @@ async function get(path: string, options: any): Promise<GotResponse> {
if (platformFailureCodes.includes(err.code)) {
throw new Error(PLATFORM_FAILURE);
}
if (err.name === 'ParseError') {
throw new Error(PLATFORM_FAILURE);
}
throw err;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment