diff --git a/crates/outbound-mysql/src/lib.rs b/crates/outbound-mysql/src/lib.rs index d88dc6c1b..8c2cd639a 100644 --- a/crates/outbound-mysql/src/lib.rs +++ b/crates/outbound-mysql/src/lib.rs @@ -53,7 +53,7 @@ impl v2::HostConnection for OutboundMysql { .await .map_err(|e| v2::Error::ConnectionFailed(format!("{e:?}")))?, ) - .map_err(|_| v2::Error::Other("too many connections".into())) + .map_err(|_| v2::Error::ConnectionFailed("too many connections".into())) .map(Resource::new_own) } .await) diff --git a/crates/outbound-pg/src/lib.rs b/crates/outbound-pg/src/lib.rs index 4b6bb8631..980d728e5 100644 --- a/crates/outbound-pg/src/lib.rs +++ b/crates/outbound-pg/src/lib.rs @@ -56,7 +56,7 @@ impl v2::HostConnection for OutboundPg { .await .map_err(|e| v2::Error::ConnectionFailed(format!("{e:?}")))?, ) - .map_err(|_| v2::Error::Other("too many connections".into())) + .map_err(|_| v2::Error::ConnectionFailed("too many connections".into())) .map(Resource::new_own) } .await) diff --git a/wit/preview2/mysql.wit b/wit/preview2/mysql.wit index f65a0cf20..afc436057 100644 --- a/wit/preview2/mysql.wit +++ b/wit/preview2/mysql.wit @@ -1,7 +1,7 @@ interface mysql { use fermyon:spin/rdbms-types.{parameter-value, row-set} - /// Errors related to interacting with Mysql. + /// Errors related to interacting with MySQL. variant error { connection-failed(string), bad-parameter(string), @@ -10,9 +10,9 @@ interface mysql { other(string) } - /// A connection to a mysql database. + /// A connection to a MySQL database. resource connection { - /// Open a connection to the Postgres instance at `address`. + /// Open a connection to the MySQL instance at `address`. open: static func(address: string) -> result /// query the database: select