@@ -38,7 +38,7 @@ pub enum Error {
3838 NotAuthorized ( String ) ,
3939 #[ error( "The replicator exited, instance cannot make any progress." ) ]
4040 ReplicatorExited ,
41- #[ error( "Timed out while openning database connection" ) ]
41+ #[ error( "Timed out while opening database connection" ) ]
4242 DbCreateTimeout ,
4343 #[ error( transparent) ]
4444 BuilderError ( #[ from] QueryResultBuilderError ) ,
@@ -65,7 +65,7 @@ pub enum Error {
6565 NamespaceAlreadyExist ( String ) ,
6666 #[ error( "Invalid namespace" ) ]
6767 InvalidNamespace ,
68- #[ error( "replication error: {0}" ) ]
68+ #[ error( "Replication error: {0}" ) ]
6969 ReplicationError ( #[ from] ReplicationError ) ,
7070 #[ error( "Failed to connect to primary" ) ]
7171 PrimaryConnectionTimeout ,
@@ -75,13 +75,13 @@ pub enum Error {
7575 InvalidMetadataBytes ( #[ from] InvalidMetadataValueBytes ) ,
7676 #[ error( "Cannot call parametrized restore over replica" ) ]
7777 ReplicaRestoreError ,
78- #[ error( "cannot load from a dump if a database already exists." ) ]
78+ #[ error( "Cannot load from a dump if a database already exists." ) ]
7979 LoadDumpExistingDb ,
80- #[ error( "cannot restore database when conflicting params were provided" ) ]
80+ #[ error( "Cannot restore database when conflicting params were provided" ) ]
8181 ConflictingRestoreParameters ,
82- #[ error( "failed to fork database: {0}" ) ]
82+ #[ error( "Failed to fork database: {0}" ) ]
8383 Fork ( #[ from] ForkError ) ,
84- #[ error( "fatal replication error" ) ]
84+ #[ error( "Fatal replication error" ) ]
8585 FatalReplicationError ,
8686}
8787
@@ -177,23 +177,23 @@ internal_from! {
177177
178178#[ derive( Debug , thiserror:: Error ) ]
179179pub enum LoadDumpError {
180- #[ error( "internal error: {0}" ) ]
180+ #[ error( "Internal error: {0}" ) ]
181181 Internal ( String ) ,
182182 #[ error( "Cannot load a dump on a replica" ) ]
183183 ReplicaLoadDump ,
184- #[ error( "cannot load from a dump if a database already exists" ) ]
184+ #[ error( "Cannot load from a dump if a database already exists" ) ]
185185 LoadDumpExistingDb ,
186- #[ error( "the passed dump file path is not absolute" ) ]
186+ #[ error( "The passed dump file path is not absolute" ) ]
187187 DumpFilePathNotAbsolute ,
188- #[ error( "the passed dump file path doesn't exist" ) ]
188+ #[ error( "The passed dump file path doesn't exist" ) ]
189189 DumpFileDoesntExist ,
190- #[ error( "invalid dump url" ) ]
190+ #[ error( "Invalid dump url" ) ]
191191 InvalidDumpUrl ,
192- #[ error( "unsupported dump url scheme `{0}`, supported schemes are: `http`, `file`" ) ]
192+ #[ error( "Unsupported dump url scheme `{0}`, supported schemes are: `http`, `file`" ) ]
193193 UnsupportedUrlScheme ( String ) ,
194- #[ error( "a dump should execute within a transaction." ) ]
194+ #[ error( "A dump should execute within a transaction." ) ]
195195 NoTxn ,
196- #[ error( "the dump should commit the transaction." ) ]
196+ #[ error( "The dump should commit the transaction." ) ]
197197 NoCommit ,
198198}
199199
0 commit comments