Strip application path from stack traces

Summary:
Stacktraces right now always contain the `/home/$USER/.cache/flipper-launcher/v1.2.3/...` (or equivalent)
which makes deduping and reading harder. This strips the paths.

Reviewed By: mweststrate

Differential Revision: D27130251

fbshipit-source-id: c0e8d5eb1575c6269d49a6aee0e8a5e93996d223
This commit is contained in:
Pascal Hartig
2021-03-19 07:29:23 -07:00
committed by Facebook GitHub Bot
parent 28480ac891
commit 2ae7d13a64

View File

@@ -31,6 +31,15 @@ export function getStaticPath() {
return _staticPath;
}
let _appPath: string | undefined = undefined;
export function getAppPath() {
if (!_appPath) {
_appPath = path.join(getStaticPath(), '..');
}
return _appPath;
}
export function getChangelogPath() {
const staticPath = getStaticPath();
let changelogPath = '';