Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 2523a37

Browse files
chore: add logger and convert exception to log
1 parent a3b8554 commit 2523a37

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/features/codiga-file-suggestion.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { Language } from "../graphql-api/types";
1515
import { getWorkspaceRosieLanguage } from "../rosie/rosieUtils";
1616
import getFileUri, { doesFileExist } from "../utils/fileUtils";
1717
import { getFromLocalStorage, setToLocalStorage } from "../utils/localStorage";
18+
import { rollbarLogger } from "../utils/rollbarUtils";
1819

1920
/**
2021
* check whether the user has ignored codiga file suggestion for their workspace
@@ -87,7 +88,8 @@ export async function createCodigaFile(language: Language): Promise<void> {
8788
await addCreateCodigaYamlRecord();
8889
}
8990
} else {
90-
throw new Error(`${language} is not supported by Rosie`);
91+
console.log(`${language} is not supported by Rosie`);
92+
rollbarLogger(`Error: creating codiga.yml`, { language });
9193
}
9294
}
9395

0 commit comments

Comments
 (0)