mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
de392d77ed
commit
f8fa4b92f8
@ -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}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user