Skip to content

Commit

Permalink
fix: bump @sonatype/react-shared-components which includes removal of…
Browse files Browse the repository at this point in the history
… node-sass (#216)

Signed-off-by: Paul Horton <[email protected]>
  • Loading branch information
madpah authored Oct 19, 2021
1 parent c41b1b8 commit eb44f3c
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 1,264 deletions.
14 changes: 10 additions & 4 deletions ext-src/packages/golang/GolangUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ export class GolangUtils {
return Promise.reject("Type not implemented");
}
} catch (e) {
return Promise.reject(
"go list -m all failed, please try running locally to see why: " +
e.message
);
if (e instanceof Error) {
return Promise.reject(
"go list -m all failed, please try running locally to see why: " +
e.message
);
} else {
return Promise.reject(
"go list -m failed with an unknown error"
)
}
}
}

Expand Down
11 changes: 5 additions & 6 deletions ext-src/packages/gradle/GradleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@ export class GradleUtils {

return Promise.resolve(this.parseGradleDependencyTree(stdout));
} catch (e) {
return Promise.reject(
`${gradleCommand} command failed, try running it manually to see what went wrong:` +
gradleCommand +
", " +
e.error
);
let errorMessage = `${gradleCommand} command failed - try running it mannually to see what went wrong`
if (e instanceof Error) {
errorMessage += `. Error is ${e.message}`
}
return Promise.reject(errorMessage);
}
}

Expand Down
11 changes: 5 additions & 6 deletions ext-src/packages/maven/MavenUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ export class MavenUtils {

return Promise.resolve(this.parseMavenDependencyTree(dependencyTree));
} catch (e) {
return Promise.reject(
"mvn dependency:tree failed, try running it manually to see what went wrong:" +
mvnCommand +
", " +
e.error
);
let errorMessage = `${mvnCommand} command failed - try running it mannually to see what went wrong`
if (e instanceof Error) {
errorMessage += `. Error is ${e.message}`
}
return Promise.reject(errorMessage);
}
}

Expand Down
8 changes: 5 additions & 3 deletions ext-src/packages/r/RUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ export class RUtils {
);
}
} catch (e) {
return Promise.reject(
`R script failed, try running it manually to see what went wrong: ${e.error}`
);
let errorMessage = 'R script failed, try running it manually to see what went wrong'
if (e instanceof Error) {
errorMessage += `. Error is ${e.message}`
}
return Promise.reject(errorMessage);
}
}

Expand Down
Loading

0 comments on commit eb44f3c

Please sign in to comment.