Skip to content

Commit

Permalink
Never say (nearly) Oops again (nextflow-io#4356)
Browse files Browse the repository at this point in the history

Signed-off-by: Phil Ewels <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Co-authored-by: Ben Sherman <[email protected]>
Co-authored-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
3 people authored and abhi18av committed Oct 28, 2023
1 parent fa8d450 commit 1dfed1c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions 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 "Oops... Pipeline execution stopped with the following message: ${workflow.errorMessage}"
println "Error: Pipeline execution stopped with the following message: ${workflow.errorMessage}"
}
```

Expand All @@ -186,7 +186,7 @@ workflow.onComplete = {
}
workflow.onError = {
println "Oops .. something when wrong"
println "Error: something when wrong"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Launcher {
colsString.toShort()
}
catch( Exception e ) {
log.debug "Oops.. not a valid \$COLUMNS value: $colsString"
log.debug "Unexpected terminal \$COLUMNS value: $colsString"
return 0
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class K8sTaskHandler extends TaskHandler implements FusionAwareTask {
client.podDelete(podName)
}
else {
log.debug "[K8s] Oops.. invalid delete action"
log.debug "[K8s] Invalid delete action"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class StateObj implements Serializable, Cloneable {
*/
void incSubmitted() {
if( poisoned )
log.debug "Oops.. Cannot process more messages after Poison-Pill was received"
log.debug "Cannot process more messages after Poison-Pill was received"
else
submitted++
}
Expand All @@ -58,7 +58,7 @@ class StateObj implements Serializable, Cloneable {
*/
void incCompleted() {
if( completed >= submitted ) {
log.debug "Oops.. Processed messages ($submitted) should not overcome received messages ($submitted) count"
log.debug "Processed messages ($submitted) should not overcome received messages ($submitted) count"
}
completed++
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class TaskPollingMonitor implements TaskMonitor {
log.debug msg.join('\n')
}
catch (Throwable e) {
log.debug "Oops.. expected exception", e
log.debug "Unexpected exception dumping run queue", e
}
}

Expand All @@ -473,7 +473,7 @@ class TaskPollingMonitor implements TaskMonitor {
log.debug msg.join('\n')
}
catch (Throwable e) {
log.debug "Oops.. unexpected exception", e
log.debug "Unexpected exception dumping submit queue", e
}
}

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 = "Oops.. 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 @@ -170,7 +170,7 @@ class ClusterConfig {
return getClusterJoin().tokenize(':')[1]
}
catch (Throwable e) {
log.debug "Oops.. Cannot fetch cloud driver name", e
log.debug "Cannot fetch cloud driver name", e
return null
}
}
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 "Oops.. 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 1dfed1c

Please sign in to comment.