File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
1616 writeTagsMode ,
1717} from '@orval/core' ;
1818import chalk from 'chalk' ;
19- import { execa , type ExecaError } from 'execa' ;
19+ import { execa , ExecaError } from 'execa' ;
2020import fs from 'fs-extra' ;
2121import uniq from 'lodash.uniq' ;
2222import type { InfoObject } from 'openapi3-ts/oas30' ;
@@ -191,11 +191,9 @@ export const writeSpecs = async (
191191 try {
192192 await execa ( 'biome' , [ 'check' , '--write' , ...paths ] ) ;
193193 } catch ( error ) {
194- const errorExeca = error as ExecaError ;
195- const message =
196- errorExeca . exitCode === 1
197- ? errorExeca . stdout + errorExeca . stderr
198- : `⚠️ ${ projectTitle ? `${ projectTitle } - ` : '' } biome not found` ;
194+ let message = `⚠️ ${ projectTitle ? `${ projectTitle } - ` : '' } biome not found` ;
195+ if ( error instanceof ExecaError && error . exitCode === 1 )
196+ message = error . message ;
199197
200198 log ( chalk . yellow ( message ) ) ;
201199 }
You can’t perform that action at this time.
0 commit comments