aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/pascal.js
diff options
context:
space:
mode:
authorPartouf <partouf@gmail.com>2018-03-15 17:55:45 +0100
committerPartouf <partouf@gmail.com>2018-03-15 17:55:45 +0100
commitb74c7ff083878acac0274d1e6b2ab2d1c5ad6410 (patch)
tree1c68cf10f7fdaca11c562ad179a65aaa6846de7a /lib/compilers/pascal.js
parent6af834684fae06567aa803baf1244a3e9b472354 (diff)
downloadcompiler-explorer-b74c7ff083878acac0274d1e6b2ab2d1c5ad6410.tar.gz
compiler-explorer-b74c7ff083878acac0274d1e6b2ab2d1c5ad6410.zip
ahem
Diffstat (limited to 'lib/compilers/pascal.js')
-rw-r--r--lib/compilers/pascal.js2
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);