Skip to content

Commit b2d4444

Browse files
cancel(): Error message on non-supported backends trunkated the error message [ci skip]
1 parent abf90b0 commit b2d4444

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future
2-
Version: 1.58.0-9014
2+
Version: 1.58.0-9015
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

R/core_api-cancel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ cancel.Future <- function(x, interrupt = TRUE, ...) {
9494
if (interrupt) {
9595
backend <- future[["backend"]]
9696
if (is.null(backend)) {
97-
stop(FutureError("Interruption of futures require a backend implementing the FutureBackend API: ", sQuote(class(future)[1])))
97+
stop(FutureError(sprintf("Interruption of futures require a backend implementing the FutureBackend API: %s", sQuote(class(future)[1]))))
9898
}
9999
local({
100100
if (debug) {

0 commit comments

Comments
 (0)