mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
de392d77ed
commit
f8fa4b92f8
1 file changed
+2
@@ -105,6 +105,8 @@ export class CreateResourceStore extends DockTabStore<string> {
|
|||||||
const textContent = await fs.readFile(templatePath, { encoding: "utf-8" });
|
const textContent = await fs.readFile(templatePath, { encoding: "utf-8" });
|
||||||
|
|
||||||
templatesGroup.templates.set(filePath, textContent); // save cache
|
templatesGroup.templates.set(filePath, textContent); // save cache
|
||||||
|
|
||||||
|
return textContent;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`[CREATE-RESOURCE]: reading "${sourceFolder}/${filePath}" has failed: ${error}`);
|
logger.error(`[CREATE-RESOURCE]: reading "${sourceFolder}/${filePath}" has failed: ${error}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user