diff --git a/src/MiniDocs/MiniDocs.class.st b/src/MiniDocs/MiniDocs.class.st index bb37ffa..352aab9 100644 --- a/src/MiniDocs/MiniDocs.class.st +++ b/src/MiniDocs/MiniDocs.class.st @@ -62,13 +62,12 @@ MiniDocs class >> installYamlToJson [ self yamlToJsonBinary exists ifTrue: [ ^ MiniDocs appFolder ]. Nimble install: 'yaml'; - install: 'json'; install: 'commandeer'. OSSUnixSubprocess new command: 'nim'; arguments: {'c'. self yamlToJsonSourceCode fullName}; runAndWaitOnExitDo: [ :process :outString | - (self yamlToJsonSourceCode parent / self yamlToJsonSourceCode basenameWithoutExtension) moveToPageTitled: MiniDocs appFolder asFileReference. + (self yamlToJsonSourceCode parent / self yamlToJsonSourceCode basenameWithoutExtension) moveTo: MiniDocs appFolder asFileReference. ^ MiniDocs appFolder ] ] diff --git a/src/MiniDocs/Nimble.class.st b/src/MiniDocs/Nimble.class.st index da6912b..00e11ec 100644 --- a/src/MiniDocs/Nimble.class.st +++ b/src/MiniDocs/Nimble.class.st @@ -25,7 +25,15 @@ Nimble class >> install: packageName [ arguments: {'install'. packageName}; redirectStdout; - runAndWaitOnExitDo: [ :process :outString | ^ outString ] + redirectStderr; + runAndWaitOnExitDo: [ :process :outString :errString | + process isSuccess + ifTrue: [ Transcript show: 'Command exited correctly with output: ', outString. ] + ifFalse: [ + ^ 'Command exit with error status: ', process exitStatusInterpreter printString, String cr, + 'Stderr contents: ', errString. + ] + ] ] { #category : #accessing }