Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Sherman <[email protected]>
Signed-off-by: Phil Ewels <[email protected]>
  • Loading branch information
ewels and bentsherman committed Oct 2, 2023
1 parent 1d1bd46 commit 7d62630
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ The `onError` event handler is invoked by Nextflow when a runtime or process err

```groovy
workflow.onError {
println "Error:. Pipeline execution stopped with the following message: ${workflow.errorMessage}"
println "Error: Pipeline execution stopped with the following message: ${workflow.errorMessage}"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2165,7 +2165,7 @@ class TaskProcessor {
return CacheHelper.hasher(keys, mode).hash()
}
catch (Throwable e) {
final msg = "Error: something went wrong while creating task '$name' unique id -- Offending keys: ${ keys.collect {"\n - type=${it.getClass().getName()} value=$it"} }"
final msg = "Something went wrong while creating task '$name' unique id -- Offending keys: ${ keys.collect {"\n - type=${it.getClass().getName()} value=$it"} }"
throw new UnexpectedException(msg,e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ class LoggerHelper {
return ExceptionUtils.getStackTrace(e).split('\n')
}
catch( Throwable t ) {
log.warn "Error: something went wrong while formatting the error stack trace | ${t.message ?: t}", e
log.warn "Something went wrong while formatting the error stack trace | ${t.message ?: t}", e
return Collections.emptyList() as String[]
}
}
Expand Down

0 comments on commit 7d62630

Please sign in to comment.