mirror of
				https://git.hibas.dev/OpenServer/NodeLogging.git
				synced 2025-11-04 06:50:45 +00:00 
			
		
		
		
	Fixing error on getCallerFromExisting when invalid error
This commit is contained in:
		@ -426,6 +426,7 @@ function getCallerFile() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function getCallerFromExisting(err: Error): { file: string, line: number } {
 | 
			
		||||
   if (!err || !err.stack) return { file: "NOFILE", line: 0 };
 | 
			
		||||
   let lines = err.stack.split("\n");
 | 
			
		||||
   let current = path.basename(__filename);
 | 
			
		||||
   lines.shift();// removing first line
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user