You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/perseus-cli/src/errors.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,8 @@ pub enum ExecutionError {
52
52
#[source]
53
53
source: serde_json::Error,
54
54
},
55
+
#[error("couldn't get path to server executable (if this persists, try `perseus clean`)")]
56
+
GetServerExecutableFailedSimple,
55
57
#[error("expected second-last message from Cargo to contain server executable path, none existed (too few messages) (report this as a bug if it persists)")]
56
58
ServerExecutableMsgNotFound,
57
59
#[error("couldn't parse server executable path from Cargo (report this as a bug if it persists): {err}")]
@@ -126,8 +128,6 @@ pub enum DeployError {
126
128
#[source]
127
129
source: std::io::Error,
128
130
},
129
-
#[error("couldn't get path to server executable (if this persists, try `perseus clean`)")]
130
-
GetServerExecutableFailed,
131
131
#[error("couldn't copy file from '{from}' to '{to}' for deployment packaging")]
// Now actually run that executable path if we should
270
284
if should_run {
271
-
let exit_code = run_server(Arc::clone(&exec), dir,did_build)?;
285
+
let exit_code = run_server(Arc::clone(&exec), dir,num_steps)?;
272
286
Ok((exit_code,None))
273
287
}else{
274
288
// The user doesn't want to run the server, so we'll give them the executable
275
289
// path instead
276
290
let exec_str = (*exec.lock().unwrap()).to_string();
277
-
println!("Not running server because `--no-run` was provided. You can run it manually by running the following executable from the root of the project.\n{}",&exec_str);
291
+
// Only tell the user about this if we're not testing (which is a whole separate
292
+
// workflow)
293
+
if !testing {
294
+
println!("Not running server because `--no-run` was provided. You can run it manually by running the following executable from the root of the project.\n{}",&exec_str);
0 commit comments