I'm a dumbass
This commit is contained in:
parent
625533a2d3
commit
f91090a7b0
1 changed files with 3 additions and 3 deletions
|
@ -58,17 +58,17 @@ namespace CollabVMAgent
|
|||
try
|
||||
{
|
||||
File.WriteAllBytes(UploadsFolder + @"\" + msg.Filename, msg.FileData);
|
||||
} catch (Exception e)
|
||||
} catch (Exception ex)
|
||||
{
|
||||
#if DEBUG
|
||||
Console.WriteLine($"Failed to save {msg.Filename}: {e.Message}");
|
||||
Console.WriteLine($"Failed to save {msg.Filename}: {ex.Message}");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
#if DEBUG
|
||||
Console.WriteLine($"Successfully wrote {msg.Filename} ({msg.FileData.Length} bytes)");
|
||||
#endif
|
||||
Process.Start(UploadsFolder + @"\" + msg.Filename, msg.FileData);
|
||||
Process.Start(UploadsFolder + @"\" + msg.Filename);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue