Commit 6623dff3 authored by chicm-ms's avatar chicm-ms Committed by xuehui
Browse files

Add file path of dispatcher.log into dispatcher error info (#1094)

parent 31dc58e9
......@@ -25,6 +25,7 @@ import { EventEmitter } from 'events';
import { Readable, Writable } from 'stream';
import { NNIError } from '../common/errors';
import { getLogger, Logger } from '../common/log';
import { getLogDir } from '../common/utils';
import * as CommandType from './commands';
const ipcOutgoingFd: number = 3;
......@@ -106,7 +107,10 @@ class IpcInterface {
this.logger.warning('Commands jammed in buffer!');
}
} catch (err) {
throw NNIError.FromError(err, 'Dispatcher Error: ');
throw NNIError.FromError(
err,
`Dispatcher Error, please check this dispatcher log file for more detailed information: ${getLogDir()}/dispatcher.log . `
);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment