File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
extensions/ql-vscode/src/query-history Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { extLogger } from "../common/logging/vscode";
66import { readDirFullPaths } from "../common/files" ;
77import { QueryHistoryDirs } from "./query-history-dirs" ;
88import { QueryHistoryManager } from "./query-history-manager" ;
9+ import { getErrorMessage } from "../common/helpers-pure" ;
910
1011const LAST_SCRUB_TIME_KEY = "lastScrubTime" ;
1112
@@ -141,7 +142,7 @@ async function scrubDirectory(
141142 }
142143 } catch ( err ) {
143144 return {
144- errorMsg : ` Could not delete '${ dir } ': ${ err } ` ,
145+ errorMsg : ` Could not delete '${ dir } ': ${ getErrorMessage ( err ) } ` ,
145146 deleted : false ,
146147 } ;
147148 }
@@ -177,7 +178,9 @@ async function getTimestamp(
177178 return parseInt ( timestampText , 10 ) ;
178179 } catch ( err ) {
179180 void extLogger . log (
180- ` Could not read timestamp file '${ timestampFile } ': ${ err } ` ,
181+ ` Could not read timestamp file '${ timestampFile } ': ${ getErrorMessage (
182+ err ,
183+ ) } `,
181184 ) ;
182185 return undefined ;
183186 }
You can’t perform that action at this time.
0 commit comments