We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f8f18 commit 0f9345bCopy full SHA for 0f9345b
tmc-langs-core/src/tmc_core.rs
@@ -474,6 +474,10 @@ impl TmcCore {
474
submission_path: &Path,
475
locale: Option<Language>,
476
) -> Result<NewSubmission, CoreError> {
477
+ if self.token.is_none() {
478
+ return Err(CoreError::NotLoggedIn);
479
+ }
480
+
481
self.progress("Compressing submission...".to_string(), 0.0, None)?;
482
let compressed = task_executor::compress_project(submission_path)?;
483
let mut file = NamedTempFile::new().map_err(CoreError::TempFile)?;
0 commit comments