diff options
Diffstat (limited to 'lib/compilers/pascal.js')
-rw-r--r-- | lib/compilers/pascal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js index c3ccb857b..fe7e70cee 100644 --- a/lib/compilers/pascal.js +++ b/lib/compilers/pascal.js @@ -129,7 +129,7 @@ class FPCCompiler extends BaseCompiler { options.push(projectFile); return this.exec(compiler, options, execOptions).then(result => { - const fileWithoutPath = path.filename(inputFilename); + const fileWithoutPath = path.basename(inputFilename); result.inputFilename = fileWithoutPath; result.stdout = utils.parseOutput(result.stdout, fileWithoutPath); result.stderr = utils.parseOutput(result.stderr, fileWithoutPath); |